From ba1e1439e454eebbf158c6b89beb426a04025474 Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Mon, 12 Mar 2018 03:38:30 +0000 Subject: [PATCH] Shipyard_API - Liveness and Readiness Probes This patch set does the following to enhance health/status checks on the shipyard-api pod: 1) Add Liveness Probe 2) Update Readiness Probe Change-Id: Ifab63a8724f29fb38124f43d475bb022807a4cce --- .../shipyard/templates/deployment-shipyard.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/charts/shipyard/templates/deployment-shipyard.yaml b/charts/shipyard/templates/deployment-shipyard.yaml index 158420e0..78ec2c38 100644 --- a/charts/shipyard/templates/deployment-shipyard.yaml +++ b/charts/shipyard/templates/deployment-shipyard.yaml @@ -53,10 +53,20 @@ spec: imagePullPolicy: {{ .Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.shipyard_api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} ports: - - containerPort: {{ .Values.network.shipyard.port }} + - containerPort: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + livenessProbe: + httpGet: + path: /api/v1.0/health + port: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 15 + periodSeconds: 10 readinessProbe: - tcpSocket: - port: {{ .Values.network.shipyard.port }} + httpGet: + scheme: HTTP + path: /api/v1.0/health + port: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 15 + periodSeconds: 10 volumeMounts: - name: etc-shipyard mountPath: /etc/shipyard