Skip to content

Commit bc50360

Browse files
committed
update probHandler
Signed-off-by: Babbili <[email protected]>
1 parent 5f0f25f commit bc50360

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

pkg/meshsync/resources.go

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
corev1 "k8s.io/api/core/v1"
2222
"k8s.io/apimachinery/pkg/api/resource"
2323
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24-
"k8s.io/apimachinery/pkg/util/intstr"
2524
)
2625

2726
var (
@@ -110,23 +109,27 @@ var (
110109
InitialDelaySeconds: 60,
111110
PeriodSeconds: 10,
112111
TimeoutSeconds: 2,
113-
FailureThreshold: 3,
112+
FailureThreshold: 4,
114113
ProbeHandler: corev1.ProbeHandler{
115-
HTTPGet: &corev1.HTTPGetAction{
116-
Path: "/healthz/live",
117-
Port: intstr.FromInt(11000),
114+
Exec: &corev1.ExecAction{
115+
Command: []string{
116+
"./meshery-meshsync",
117+
"-h",
118+
},
118119
},
119120
},
120121
},
121122
ReadinessProbe: &corev1.Probe{
122-
InitialDelaySeconds: 5,
123+
InitialDelaySeconds: 20,
123124
PeriodSeconds: 4,
124125
TimeoutSeconds: 2,
125-
FailureThreshold: 3,
126+
FailureThreshold: 4,
126127
ProbeHandler: corev1.ProbeHandler{
127-
HTTPGet: &corev1.HTTPGetAction{
128-
Path: "/healthz/ready",
129-
Port: intstr.FromInt(11000),
128+
Exec: &corev1.ExecAction{
129+
Command: []string{
130+
"./meshery-meshsync",
131+
"-h",
132+
},
130133
},
131134
},
132135
},

0 commit comments

Comments
 (0)