docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout
This commit is contained in:
parent
9ab2f4e1b6
commit
bcbba8d605
1 changed files with 114 additions and 16 deletions
|
|
@ -115,8 +115,17 @@ credential directory.
|
|||
stay on the host: the pod has the security shape above and no other.
|
||||
- **Probes:** a service with an opt-in health listener gets its variable set to
|
||||
`0.0.0.0:8080`, with liveness on `/healthz` and readiness on `/readyz`
|
||||
(see [Readiness checks](../swarm/readiness.md)). `swarm-controller` serves
|
||||
`/readyz` on its unix socket only, so it has no probes yet.
|
||||
(see [Readiness checks](../swarm/readiness.md)). `swarm-controller` is one of
|
||||
them, with `SWARM_CONTROLLER_HEALTH_ADDR`.
|
||||
- **Listener and init container:** a service with a TCP `listener`
|
||||
(`swarm-controller`, with `swarm.controller.tcp.enable`) publishes its port on
|
||||
the node's address with a `hostPort`, and gets an init container and a
|
||||
renewal container that issue its leaf into an `emptyDir`
|
||||
([runtime](runtime.md#the-controller)). The image of those containers is part
|
||||
of `system.build.k8sImages`.
|
||||
- **Config checksum:** a Deployment whose service has a ConfigMap (`etcFiles`)
|
||||
carries `checksum/etc` on its pod template, the hash of that ConfigMap's
|
||||
content, so a changed file rolls the pod.
|
||||
- **Shutdown:** `terminationGracePeriodSeconds` is 15, the 10-second drain a
|
||||
daemon allows itself after SIGTERM (`DRAIN` in
|
||||
`swarm-secret-client/src/shutdown.rs`) plus headroom.
|
||||
|
|
@ -154,7 +163,7 @@ store's side.
|
|||
provider) by the same names as the units do. The node's CoreDNS answers those
|
||||
names with the hive bridge's address.
|
||||
- `swarm-controller`'s socket lives in an `emptyDir`, so only the pod can
|
||||
reach it.
|
||||
reach it. The gateway dials the TCP listener instead.
|
||||
|
||||
## Validation
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue