Files
cozystack/packages/system
Myasnikov Daniil 43548d98eb fix(kubevirt-cdi-operator): add startupProbe to survive slow leader election
cdi-operator's controller-runtime starts the health probe HTTP server
(:8444) only after the leader election lease is acquired. On a fresh
cluster the lease can take 15–20 s, exceeding the liveness probe's
5s + 3×10s grace under load. Kubelet kills the container before the
probe can succeed; the pod loops in CrashLoopBackOff, CDI never
reconciles its CR, datavolumes.cdi.kubevirt.io stays unavailable, and
every downstream test that creates a DataVolume (tenant kubernetes
worker VMs, vm-instance) fails.

Add a startupProbe that hits /healthz with 30×5s grace (150 s total).
Once it succeeds once, liveness/readiness take over with their existing
strict config. No effect on healthy clusters; only relaxes the
ramp-up window.

Implemented as a patches/*.diff applied from the Makefile update
target, mirroring the fluxcd-operator pattern. Survives the next
upstream regen; if upstream restructures the area around the
readinessProbe/resources boundary the patch will fail loudly so the
maintainer notices.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit 8f5d45e0eb)
2026-05-25 11:54:45 +05:00
..
2026-03-25 15:57:25 +05:00
2026-05-13 21:48:39 +00:00
2026-05-13 12:29:01 +00:00
2026-05-13 21:48:39 +00:00
2026-05-13 21:48:39 +00:00
2026-05-13 12:29:01 +00:00
2026-05-13 12:29:01 +00:00
2026-02-10 20:19:03 +01:00
2026-01-15 23:32:41 +00:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-05-13 21:48:39 +00:00
2026-02-17 22:54:12 +01:00
2026-01-20 03:24:32 +01:00
2026-05-13 21:48:39 +00:00
2026-03-25 15:57:25 +05:00
2026-04-14 19:59:19 +05:00