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