From b859c1b1a55689bbda46b68e2d40f90eef667b22 Mon Sep 17 00:00:00 2001 From: "Huang,Sophie(sh879n)" Date: Mon, 10 Dec 2018 15:50:24 -0600 Subject: [PATCH] Adding livenessProbe to cinder-api container This patch set deploys a livenessProbe for the Cinder API container. Change-Id: Ice932f3209b9bbff0b54fadc79a99cfc1c2f1ee5 Signed-off-by: Huang,Sophie(sh879n) --- cinder/templates/deployment-api.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cinder/templates/deployment-api.yaml b/cinder/templates/deployment-api.yaml index 9213d34fb2..d194a40f2f 100644 --- a/cinder/templates/deployment-api.yaml +++ b/cinder/templates/deployment-api.yaml @@ -88,6 +88,14 @@ spec: readinessProbe: tcpSocket: port: {{ tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + livenessProbe: + tcpSocket: + port: {{ tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 30 + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 volumeMounts: - name: cinder-bin mountPath: /tmp/cinder-api.sh