aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-onboarding-be
diff options
context:
space:
mode:
authoramitjai <amitjai@amdocs.com>2019-01-08 15:29:42 +0530
committeramitjai <amitjai@amdocs.com>2019-01-08 17:09:47 +0530
commita4cef27683743fc2b81290cb0cdd817d1178a0d0 (patch)
tree209c92f127f24e4202a69089cb9cf59e57831d78 /kubernetes/sdc/charts/sdc-onboarding-be
parent1905aa21c293584ee082a611de0f7401038937a5 (diff)
K8S liveness probe not work when webapp crash
tcpSocket probe does not work for the web application Kubernetes will never detect that, and will never try to re-create the pod. liveness probe based on the health-check API can be used. Issue-ID: SDC-1986 Change-Id: I93720e19feb2ff558fa6c4dc3ababdbfa2eda102 Signed-off-by: amitjai <amitjai@amdocs.com>
Diffstat (limited to 'kubernetes/sdc/charts/sdc-onboarding-be')
-rw-r--r--kubernetes/sdc/charts/sdc-onboarding-be/templates/deployment.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kubernetes/sdc/charts/sdc-onboarding-be/templates/deployment.yaml b/kubernetes/sdc/charts/sdc-onboarding-be/templates/deployment.yaml
index ee5f78b3a4..87556b0b55 100644
--- a/kubernetes/sdc/charts/sdc-onboarding-be/templates/deployment.yaml
+++ b/kubernetes/sdc/charts/sdc-onboarding-be/templates/deployment.yaml
@@ -55,8 +55,9 @@ spec:
- containerPort: {{ .Values.service.internalPort2 }}
{{ if eq .Values.liveness.enabled true }}
livenessProbe:
- tcpSocket:
- port: {{ .Values.service.internalPort }}
+ exec:
+ command:
+ - "/var/lib/ready-probe.sh"
initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.liveness.periodSeconds }}
{{ end }}