apiVersion: apps/v1 kind: Deployment metadata: name: optimus namespace: cloud-services labels: app: optimus annotations: reloader.stakater.com/auto: "true" spec: replicas: 1 selector: matchLabels: app: optimus template: metadata: labels: app: optimus spec: containers: - name: optimus image: localhost:32000/optimus:v1 imagePullPolicy: IfNotPresent ports: - containerPort: 8077 name: http - containerPort: 11011 name: health env: - name: CLICKHOUSE_HOST value: chi-cloud-dev-cloud-dev-0-0.clickhouse.svc.cluster.local - name: CLICKHOUSE_PORT value: "9000" - name: CLICKHOUSE_USER value: cloud_dev - name: CLICKHOUSE_PASSWORD value: cloud_dev_password envFrom: - configMapRef: name: cloud-common-config - secretRef: name: cloud-db-credentials resources: requests: cpu: 50m memory: 64Mi limits: memory: 256Mi livenessProbe: httpGet: path: /liveness port: 11011 initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: /readiness port: 11011 initialDelaySeconds: 5 periodSeconds: 10