From daab07a949621fad3e708c8b6805cfebe3cc8005 Mon Sep 17 00:00:00 2001 From: "anthony.bellino" Date: Wed, 20 Feb 2019 21:49:02 +0000 Subject: [PATCH] [chart] Enable liveness probe in DH This is to try to address stuck deckhand-api ponds that never went to error state in an attempt to self-jolt the pod again. Change-Id: I70bf57dde5d696bddc68caab2f54826803d82d28 --- charts/deckhand/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/deckhand/templates/deployment.yaml b/charts/deckhand/templates/deployment.yaml index b4b52055..22491b82 100644 --- a/charts/deckhand/templates/deployment.yaml +++ b/charts/deckhand/templates/deployment.yaml @@ -64,6 +64,14 @@ spec: {{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} ports: - containerPort: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + livenessProbe: + httpGet: + scheme: HTTP + path: /api/v1.0/health + port: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 15 + periodSeconds: 20 + timeoutSeconds: 10 readinessProbe: httpGet: scheme: HTTP