Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: an opt-in plain /healthz and /readyz listener a kubelet can probe

This commit is contained in:
maia 2026-11-19 09:43:02 +01:00 • committed by mara
commit ffbd2f4dea

View file

@ -29,4 +29,8 @@ ends when the last clone of the check drops.
The controller starts its check once, when it starts serving
(`routes::watch_store`), and `/readyz` reads the last result. Before that, and
in tests that don't start it, the store reads as not ready.
in tests that don't start it, the store reads as not ready. The socket's
`/readyz` and the plain listener's (`SWARM_CONTROLLER_HEALTH_ADDR`) both ask
`routes::is_ready`, so they can't disagree. The listener binds at the top of
`main`, before the store is reachable, so a probe gets a 503 and not a refused
connection while the controller starts.