apiVersion: apps/v1 kind: Deployment metadata: name: csi-streaming-etl namespace: moh-prod spec: #replicas: 3 selector: matchLabels: app: csi-streaming-etl tier: backend track: stable template: metadata: labels: app: csi-streaming-etl tier: backend track: stable spec: affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - csi-streaming-etl topologyKey: "kubernetes.io/hostname" containers: - env: - name: kafka_bootstrap_servers valueFrom: configMapKeyRef: key: CSI_LOGS_KAFKA_BOOTSTRAPADDRESS name: service-configs - name: elk_log_topic valueFrom: configMapKeyRef: key: CSI_LOGS_KAFKA_TOPIC name: service-configs envFrom: - configMapRef: name: service-configs-stream-etl - secretRef: name: service-stream-etl-secret image: 'harbor.moh.gov.sa/vidamoh/csi-streaming-etl:4.1.1.20' imagePullPolicy: IfNotPresent name: csi-streaming-etl ports: - containerPort: 80 name: http protocol: TCP resources: limits: cpu: 500m memory: 4Gi requests: cpu: 250m memory: 500Mi imagePullSecrets: - name: regcred