From e5d5e68974e9f7c471595772eb233ec86be6b839 Mon Sep 17 00:00:00 2001 From: Yang Xu Date: Wed, 19 Jun 2019 18:20:31 -0400 Subject: Update sdc-be liveness probe Signed-off-by: Yang Xu Issue-ID: SDC-2375 Change-Id: I459359828485c31a247a495674eb450af9fdf167 --- kubernetes/sdc/charts/sdc-be/templates/deployment.yaml | 6 +++--- kubernetes/sdc/charts/sdc-be/values.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml index 0b015aa95c..2d47f4b588 100644 --- a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml +++ b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml @@ -69,9 +69,9 @@ spec: - containerPort: {{ .Values.service.internalPort2 }} {{ if eq .Values.liveness.enabled true }} livenessProbe: - exec: - command: - - "/var/lib/ready-probe.sh" + httpGet: + path: /sdc2/rest/version + port: {{ .Values.service.internalPort2 }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} timeoutSeconds: {{ .Values.liveness.timeoutSeconds }} diff --git a/kubernetes/sdc/charts/sdc-be/values.yaml b/kubernetes/sdc/charts/sdc-be/values.yaml index 018c379d67..3363700f8e 100644 --- a/kubernetes/sdc/charts/sdc-be/values.yaml +++ b/kubernetes/sdc/charts/sdc-be/values.yaml @@ -48,7 +48,7 @@ affinity: {} # probe configuration parameters liveness: - initialDelaySeconds: 60 + initialDelaySeconds: 120 periodSeconds: 10 timeoutSeconds: 5 # necessary to disable liveness probe when setting breakpoints -- cgit 1.2.3-korg