From a665a93b70cbdae14cbb9bfc1ae78bf65ead3433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Espa=C3=B1a?= Date: Sat, 25 Jun 2022 09:31:53 -0600 Subject: [PATCH] Adding health probes (#22) --- templates/deployment-api.yaml | 18 ++++++++++++++++++ templates/deployment-executor.yaml | 18 ++++++++++++++++++ templates/deployment-registry.yaml | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/templates/deployment-api.yaml b/templates/deployment-api.yaml index 7d5528a..963ba44 100644 --- a/templates/deployment-api.yaml +++ b/templates/deployment-api.yaml @@ -26,4 +26,22 @@ spec: envFrom: - secretRef: name: terrakube-api-secrets + startupProbe: + httpGet: + path: /actuator/health + port: 8080 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health/liveness + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8080 + initialDelaySeconds: 120 + periodSeconds: 10 {{ end }} \ No newline at end of file diff --git a/templates/deployment-executor.yaml b/templates/deployment-executor.yaml index 44b967d..92e6968 100644 --- a/templates/deployment-executor.yaml +++ b/templates/deployment-executor.yaml @@ -26,4 +26,22 @@ spec: envFrom: - secretRef: name: terrakube-executor-secrets + startupProbe: + httpGet: + path: /actuator/health + port: 8090 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health/liveness + port: 8090 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8090 + initialDelaySeconds: 120 + periodSeconds: 10 {{ end }} \ No newline at end of file diff --git a/templates/deployment-registry.yaml b/templates/deployment-registry.yaml index 0f02bd8..27a34c5 100644 --- a/templates/deployment-registry.yaml +++ b/templates/deployment-registry.yaml @@ -26,4 +26,22 @@ spec: envFrom: - secretRef: name: terrakube-registry-secrets + startupProbe: + httpGet: + path: /actuator/health + port: 8075 + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /actuator/health/liveness + port: 8075 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /actuator/health/readiness + port: 8075 + initialDelaySeconds: 120 + periodSeconds: 10 {{ end }} \ No newline at end of file