K8S liveness probe not work when webapp crash
[oom.git] / kubernetes / sdc / charts / sdc-onboarding-be / templates / deployment.yaml
index ee5f78b..87556b0 100644 (file)
@@ -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 }}