Skip to content

Commit b1f51e9

Browse files
author
Peng Zhou
committed
MLE-22135: change liveness probe
1 parent b726317 commit b1f51e9

File tree

2 files changed

+5
-33
lines changed

2 files changed

+5
-33
lines changed

pkg/k8sutil/scripts/liveness-probe.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

pkg/k8sutil/statefulset.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,11 @@ func getLivenessProbe(probe marklogicv1.ContainerProbe) *corev1.Probe {
696696
TimeoutSeconds: probe.TimeoutSeconds,
697697
SuccessThreshold: probe.SuccessThreshold,
698698
ProbeHandler: corev1.ProbeHandler{
699-
Exec: &corev1.ExecAction{
700-
Command: []string{"/bin/bash", "/tmp/helm-scripts/liveness-probe.sh"},
699+
TCPSocket: &corev1.TCPSocketAction{
700+
Port: intstr.IntOrString{
701+
Type: intstr.Int,
702+
IntVal: 8001,
703+
},
701704
},
702705
},
703706
}

0 commit comments

Comments
 (0)