From 92381488837dc481a83859a8502839f509e778b3 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 9 Jul 2026 09:18:23 +0200 Subject: [PATCH] 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 9a1b235..8bb26d8 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"},