aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-be/templates
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-be/templates
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-be/templates')
-rw-r--r--kubernetes/sdc/charts/sdc-be/templates/deployment.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
index 4f8339fd05..063e2d868f 100644
--- a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
+++ b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
@@ -69,8 +69,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 }}