apiVersion: apps/v1 kind: Deployment metadata: name: api-gateway labels: app: api-gateway app.kubernetes.io/part-of: phonebill spec: replicas: 1 selector: matchLabels: app: api-gateway template: metadata: labels: app: api-gateway spec: containers: - name: api-gateway image: docker.io/hiondal/api-gateway:latest imagePullPolicy: Always ports: - containerPort: 8080 name: http envFrom: - configMapRef: name: cm-common - configMapRef: name: cm-api-gateway - secretRef: name: secret-common resources: requests: cpu: "256m" memory: "256Mi" limits: cpu: "1024m" memory: "1024Mi" livenessProbe: httpGet: path: /actuator/health/liveness port: 8080 initialDelaySeconds: 60 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: httpGet: path: /actuator/health/readiness port: 8080 initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3