Skip to content

Commit 5d2f027

Browse files
authored
Merge pull request #647 from Babbili/babbili/k8s/healthz
[k8s] Create `meshSync` Kubernetes Health Probes
2 parents 1e62263 + bc50360 commit 5d2f027

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pkg/meshsync/resources.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,34 @@ var (
105105
corev1.ResourceMemory: MemoryLimit,
106106
},
107107
},
108+
LivenessProbe: &corev1.Probe{
109+
InitialDelaySeconds: 60,
110+
PeriodSeconds: 10,
111+
TimeoutSeconds: 2,
112+
FailureThreshold: 4,
113+
ProbeHandler: corev1.ProbeHandler{
114+
Exec: &corev1.ExecAction{
115+
Command: []string{
116+
"./meshery-meshsync",
117+
"-h",
118+
},
119+
},
120+
},
121+
},
122+
ReadinessProbe: &corev1.Probe{
123+
InitialDelaySeconds: 20,
124+
PeriodSeconds: 4,
125+
TimeoutSeconds: 2,
126+
FailureThreshold: 4,
127+
ProbeHandler: corev1.ProbeHandler{
128+
Exec: &corev1.ExecAction{
129+
Command: []string{
130+
"./meshery-meshsync",
131+
"-h",
132+
},
133+
},
134+
},
135+
},
108136
},
109137
},
110138
},

0 commit comments

Comments
 (0)