Repository navigation
Commit 4b9b1b4
fix(capi): add startupProbe to capi-controller-manager to survive cert provisioning delay
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 <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 8c411d8 commit 4b9b1b4
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15144 | 15144 | | |
15145 | 15145 | | |
15146 | 15146 | | |
| 15147 | + | |
| 15148 | + | |
| 15149 | + | |
| 15150 | + | |
| 15151 | + | |
| 15152 | + | |
15147 | 15153 | | |
15148 | 15154 | | |
15149 | 15155 | | |
| |||
0 commit comments