summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-01-17 10:42:57 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-17 10:42:57 +0000
commit79145b425195724d1bc93e226ca6a47f38675d1f (patch)
tree1c3be3f9e668f3662350341583663360d1322451 /kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
parent42f5651de0c3c634056b499aeb2ccf12a9039597 (diff)
parenta4cef27683743fc2b81290cb0cdd817d1178a0d0 (diff)
Merge "K8S liveness probe not work when webapp crash"
Diffstat (limited to 'kubernetes/sdc/charts/sdc-be/templates/deployment.yaml')
-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 }}