apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: openshift-cluster-kube-controller-manager-operator
  name: openshift-cluster-kube-controller-manager-operator
  labels:
    app: openshift-cluster-kube-controller-manager-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: openshift-cluster-kube-controller-manager-operator
  template:
    metadata:
      name: openshift-cluster-kube-controller-manager-operator
      labels:
        app: openshift-cluster-kube-controller-manager-operator
    spec:
      serviceAccountName: openshift-cluster-kube-controller-manager-operator
      containers:
      - name: operator
        image: docker.io/openshift/origin-cluster-kube-controller-manager-operator:v4.0
        imagePullPolicy: Always
        command: ["cluster-kube-controller-manager-operator", "operator"]
        args:
        - "--config=/var/run/configmaps/config/config.yaml"
        - "-v=4"
        resources:
          requests:
            memory: 50Mi
        volumeMounts:
        - mountPath: /var/run/configmaps/config
          name: config
        env:
        - name: IMAGE
          value: quay.io/openshift/origin-hyperkube:v4.0
        - name: OPERATOR_IMAGE
          value: docker.io/openshift/origin-cluster-kube-controller-manager-operator:v4.0
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        terminationMessagePolicy: FallbackToLogsOnError
      volumes:
      - name: serving-cert
        secret:
          secretName: openshift-cluster-kube-controller-manager-operator-serving-cert
          optional: true
      - name: config
        configMap:
          name: openshift-cluster-kube-controller-manager-operator-config
      nodeSelector:
        node-role.kubernetes.io/master: ""
      tolerations:
      - operator: Exists
