apiVersion: v1 kind: Namespace metadata: labels: control-plane: controller name: system --- apiVersion: apps/v1 kind: Deployment metadata: name: controller namespace: system labels: control-plane: controller spec: selector: matchLabels: control-plane: controller replicas: 1 template: metadata: labels: control-plane: controller annotations: prometheus.io/scrape: "true" prometheus.io/port: "8080" spec: containers: - command: - /controller args: - --enable-leader-election image: controller:latest name: controller ports: - containerPort: 8080 name: metrics-server protocol: TCP resources: limits: cpu: 100m memory: 300Mi requests: cpu: 100m memory: 200Mi livenessProbe: failureThreshold: 2 httpGet: path: /healthz port: 61779 scheme: HTTP initialDelaySeconds: 30 timeoutSeconds: 10 terminationGracePeriodSeconds: 10