Skip to content

Commit 6437190

Browse files
committed
fix: health probes paths and updated timing
aligned readiness probe to /readyz and liveness to /healthz added startup probe with more forgiving timings to account for time to get leader on slower systems like sno added explicit timing values for health probes to handle slower response environments like sno during upgrades Signed-off-by: ehila <[email protected]>
1 parent 52a965a commit 6437190

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

pkg/operator/sync.go

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,18 +694,41 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
694694
ContainerPort: defaultMachineSetHealthPort,
695695
},
696696
},
697+
StartupProbe: &corev1.Probe{
698+
PeriodSeconds: 10,
699+
TimeoutSeconds: 10,
700+
FailureThreshold: 30,
701+
SuccessThreshold: 1,
702+
InitialDelaySeconds: 0,
703+
ProbeHandler: corev1.ProbeHandler{
704+
HTTPGet: &corev1.HTTPGetAction{
705+
Path: "/readyz",
706+
Port: intstr.Parse("healthz"),
707+
},
708+
},
709+
},
697710
ReadinessProbe: &corev1.Probe{
711+
PeriodSeconds: 10,
712+
TimeoutSeconds: 5,
713+
FailureThreshold: 3,
714+
SuccessThreshold: 1,
715+
InitialDelaySeconds: 0,
698716
ProbeHandler: corev1.ProbeHandler{
699717
HTTPGet: &corev1.HTTPGetAction{
700-
Path: "/healthz",
718+
Path: "/readyz",
701719
Port: intstr.Parse("healthz"),
702720
},
703721
},
704722
},
705723
LivenessProbe: &corev1.Probe{
724+
PeriodSeconds: 10,
725+
TimeoutSeconds: 5,
726+
FailureThreshold: 3,
727+
SuccessThreshold: 1,
728+
InitialDelaySeconds: 0,
706729
ProbeHandler: corev1.ProbeHandler{
707730
HTTPGet: &corev1.HTTPGetAction{
708-
Path: "/readyz",
731+
Path: "/healthz",
709732
Port: intstr.Parse("healthz"),
710733
},
711734
},

0 commit comments

Comments
 (0)