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
This commit is contained in:
Anthony Lin 2018-03-12 03:38:30 +00:00
parent 74a3743fae
commit ba1e1439e4
1 changed files with 13 additions and 3 deletions

View File

@ -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