| apiVersion: v1 |
| kind: Namespace |
| metadata: |
| labels: |
| control-plane: sonataflow-operator |
| name: system |
| --- |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: controller-manager |
| namespace: system |
| labels: |
| control-plane: sonataflow-operator |
| spec: |
| selector: |
| matchLabels: |
| control-plane: sonataflow-operator |
| replicas: 1 |
| template: |
| metadata: |
| annotations: |
| kubectl.kubernetes.io/default-container: manager |
| labels: |
| control-plane: sonataflow-operator |
| spec: |
| securityContext: |
| runAsNonRoot: true |
| containers: |
| - command: |
| - /usr/local/bin/manager |
| args: |
| - --leader-elect |
| - --v=2 |
| image: controller:latest |
| name: manager |
| securityContext: |
| allowPrivilegeEscalation: false |
| capabilities: |
| drop: |
| - ALL |
| livenessProbe: |
| httpGet: |
| path: /healthz |
| port: 8081 |
| initialDelaySeconds: 15 |
| periodSeconds: 20 |
| readinessProbe: |
| httpGet: |
| path: /readyz |
| port: 8081 |
| initialDelaySeconds: 5 |
| periodSeconds: 10 |
| # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
| resources: |
| limits: |
| cpu: 500m |
| memory: 128Mi |
| requests: |
| cpu: 10m |
| memory: 64Mi |
| serviceAccountName: controller-manager |
| terminationGracePeriodSeconds: 10 |