apiVersion: apps/v1 kind: Deployment metadata: name: csi-otp-service namespace: moh-prod spec: selector: matchLabels: app: csi-otp-service tier: backend track: stable template: metadata: labels: app: csi-otp-service tier: backend track: stable spec: containers: - env: - name: SPRING_REDIS_SENTINEL_MASTER valueFrom: configMapKeyRef: key: SPRING_REDIS_SENTINEL_MASTER name: otp-configs - name: SPRING_REDIS_SENTINEL_NODES valueFrom: configMapKeyRef: key: SPRING_REDIS_SENTINEL_NODES name: otp-configs - name: KAFKA_BOOTSTRAP_SERVERS valueFrom: configMapKeyRef: key: KAFKA_BOOTSTRAP_SERVERS name: otp-configs image: registry.cloudsolutions.com.sa/vida-qa/csi-otp-service:4.0.0.0-b3 imagePullPolicy: IfNotPresent name: csi-otp-service ports: - containerPort: 80 name: http - containerPort: 3000 name: app resources: limits: cpu: 500m memory: 1250Mi requests: cpu: 50m memory: 512Mi imagePullSecrets: - name: regcred