From a29741e3a7998ab4ccb1bc1cf22ece772529e619 Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Tue, 13 Mar 2018 07:50:36 +0000 Subject: [PATCH] Deckhand API - Liveness and Readiness Probes This patch set does the following to enhance health/status checks on the deckhand-api pod: 1) Add Liveness Probe 2) Update Readiness Probe Change-Id: I1a1c107706862431e53668a864db622499e63c6f --- charts/deckhand/templates/deployment.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/charts/deckhand/templates/deployment.yaml b/charts/deckhand/templates/deployment.yaml index 5d40bbe1..abd4bb00 100644 --- a/charts/deckhand/templates/deployment.yaml +++ b/charts/deckhand/templates/deployment.yaml @@ -55,10 +55,21 @@ spec: imagePullPolicy: {{ .Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} ports: - - containerPort: {{ .Values.network.port }} + - 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: 10 readinessProbe: - tcpSocket: - port: {{ .Values.network.port }} + httpGet: + scheme: HTTP + path: /api/v1.0/health + port: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 15 + periodSeconds: 10 volumeMounts: - name: etc-deckhand mountPath: /etc/deckhand