swarm-controller: an opt-in plain /healthz and /readyz listener a kubelet can probe
This commit is contained in:
parent
c78d73ccd1
commit
ffbd2f4dea
1 changed files with 147 additions and 50 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue