apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/component: knative-eventing-install
    app.kubernetes.io/instance: knative-eventing-install
    app.kubernetes.io/managed-by: kfctl
    app.kubernetes.io/name: knative-eventing-install
    app.kubernetes.io/part-of: kubeflow
    app.kubernetes.io/version: v0.11.0
    eventing.knative.dev/release: v0.11.0
    kustomize.component: knative
    serving.knative.dev/release: v0.11.0
  name: imc-dispatcher
  namespace: knative-serving
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/component: knative-eventing-install
      app.kubernetes.io/instance: knative-eventing-install
      app.kubernetes.io/managed-by: kfctl
      app.kubernetes.io/name: knative-eventing-install
      app.kubernetes.io/part-of: kubeflow
      app.kubernetes.io/version: v0.11.0
      kustomize.component: knative
      messaging.knative.dev/channel: in-memory-channel
      messaging.knative.dev/role: dispatcher
      serving.knative.dev/release: v0.11.0
  template:
    metadata:
      labels:
        app.kubernetes.io/component: knative-eventing-install
        app.kubernetes.io/instance: knative-eventing-install
        app.kubernetes.io/managed-by: kfctl
        app.kubernetes.io/name: knative-eventing-install
        app.kubernetes.io/part-of: kubeflow
        app.kubernetes.io/version: v0.11.0
        kustomize.component: knative
        messaging.knative.dev/channel: in-memory-channel
        messaging.knative.dev/role: dispatcher
        serving.knative.dev/release: v0.11.0
    spec:
      containers:
      - env:
        - name: CONFIG_LOGGING_NAME
          value: config-logging
        - name: CONFIG_OBSERVABILITY_NAME
          value: config-observability
        - name: METRICS_DOMAIN
          value: knative.dev/inmemorychannel-dispatcher
        - name: SYSTEM_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        image: gcr.io/knative-releases/knative.dev/eventing/cmd/in_memory/channel_dispatcher@sha256:f5402f075154adfdfb72bf3e4e1a755df6eb57e0e5c7770450210c3b0270d38f
        name: dispatcher
        ports:
        - containerPort: 9090
          name: metrics
        volumeMounts:
        - mountPath: /etc/config-logging
          name: config-logging
      serviceAccountName: imc-dispatcher
      volumes:
      - configMap:
          name: config-logging
        name: config-logging
