diff --git a/deployment/deploy.yaml.template b/deployment/deploy.yaml.template index 5e2b2c1..81e0185 100644 --- a/deployment/deploy.yaml.template +++ b/deployment/deploy.yaml.template @@ -114,6 +114,28 @@ spec: name: common-secret - secretRef: name: database-secret + startupProbe: + httpGet: + path: /actuator/health + port: 8081 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health + port: 8081 + initialDelaySeconds: 60 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8081 + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 --- apiVersion: apps/v1 @@ -157,6 +179,28 @@ spec: name: common-secret - secretRef: name: database-secret + startupProbe: + httpGet: + path: /actuator/health + port: 8082 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health + port: 8082 + initialDelaySeconds: 60 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8082 + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 --- apiVersion: apps/v1 @@ -200,6 +244,28 @@ spec: name: common-secret - secretRef: name: database-secret + startupProbe: + httpGet: + path: /actuator/health + port: 8083 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health + port: 8083 + initialDelaySeconds: 60 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8083 + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 --- # Services