From 5aef349d721a915e9bd79d9d67c520f078c8e3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Sat, 4 Jul 2026 13:43:06 +0200 Subject: [PATCH 1/2] fix: set a lower default PeriodSeconds for the startupProbe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- internal/cnpgi/operator/lifecycle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cnpgi/operator/lifecycle.go b/internal/cnpgi/operator/lifecycle.go index 776b3014..9a1b2358 100644 --- a/internal/cnpgi/operator/lifecycle.go +++ b/internal/cnpgi/operator/lifecycle.go @@ -403,6 +403,7 @@ func reconcilePodSpec( envs = append(envs, config.env...) baseProbe := &corev1.Probe{ + PeriodSeconds: 1, FailureThreshold: 10, TimeoutSeconds: 10, ProbeHandler: corev1.ProbeHandler{ From 92381488837dc481a83859a8502839f509e778b3 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 9 Jul 2026 09:18:23 +0200 Subject: [PATCH 2/2] fix: raise failureThreshold to 30 and halve probe timeout to 5s The 1s periodSeconds keeps the common case fast, since the probe is a local unix socket call that normally succeeds in milliseconds. A unix socket connection essentially never times out under mere load, so hitting the timeout implies the sidecar is genuinely unresponsive rather than just slow; raising failureThreshold gives that rare case more patience before restarting the container. Signed-off-by: Marco Nenciarini --- internal/cnpgi/operator/lifecycle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cnpgi/operator/lifecycle.go b/internal/cnpgi/operator/lifecycle.go index 9a1b2358..8bb26d80 100644 --- a/internal/cnpgi/operator/lifecycle.go +++ b/internal/cnpgi/operator/lifecycle.go @@ -404,8 +404,8 @@ func reconcilePodSpec( baseProbe := &corev1.Probe{ PeriodSeconds: 1, - FailureThreshold: 10, - TimeoutSeconds: 10, + FailureThreshold: 30, + TimeoutSeconds: 5, ProbeHandler: corev1.ProbeHandler{ Exec: &corev1.ExecAction{ Command: []string{"/manager", "healthcheck", "unix"},