mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
The capi-controller-manager liveness probe has no initialDelaySeconds (defaults to 0), giving the container only 30s (3×10s) to serve /healthz. In controller-runtime, the health endpoint starts after the webhook server, which needs its TLS cert from cert-manager. During a loaded install, cert-manager is busy issuing many certs simultaneously and the CAPI webhook cert can take >30s — causing a kill loop (6+ restarts observed in CI). A startupProbe with failureThreshold=30 gives up to 300s for the initial startup, after which the regular livenessProbe takes over for ongoing health monitoring. This is the standard pattern for slow-starting containers with external dependencies. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>