apiVersion: apps/v1 kind: Deployment metadata: name: controller-manager namespace: system labels: control-plane: controller-manager controller-tools.k8s.io: "1.0" spec: selector: matchLabels: control-plane: controller-manager controller-tools.k8s.io: "1.0" template: metadata: labels: control-plane: controller-manager controller-tools.k8s.io: "1.0" spec: containers: - command: - /manager image: controller:latest imagePullPolicy: IfNotPresent name: manager env: - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace ports: - containerPort: 9440 name: healthz protocol: TCP readinessProbe: httpGet: path: /readyz port: healthz livenessProbe: httpGet: path: /healthz port: healthz terminationGracePeriodSeconds: 10 tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master