require k8s: swarm services with a pod run in the cluster only
This commit is contained in:
parent
7819ed2dbd
commit
2e1f037f25
1 changed files with 1044 additions and 3125 deletions
|
|
@ -208,14 +208,15 @@ list-timers swarm-services-cert-renew` shows the next run.
|
|||
|
||||
## The controller's TCP listener has two leaves of its own
|
||||
|
||||
`swarm.controller.tcp.enable` adds a TLS listener to the swarm controller (default off). The
|
||||
The swarm controller runs a TLS listener (`swarm.controller.tcp.enable`, on by default). The
|
||||
controller checks nobody per request, so the listener finishes a handshake for one client only:
|
||||
the gateway. Both ends hold a leaf from the store's `pki` mount, each through a role of its own on
|
||||
the same mount and the same root:
|
||||
|
||||
- **Server leaf.** The `swarm-controller-tls` role issues for `swarm.controller.tcp.domain` alone,
|
||||
`serverAuth` only. `swarm-controller-tls.service` on the controller's host requests it under the
|
||||
controller's own store leaf, whose policy gains that one issue path.
|
||||
`serverAuth` only. The pod's `tls-issue` init container requests it with its
|
||||
ServiceAccount token, through the `swarm-controller` jwt role, whose policy has
|
||||
that one issue path.
|
||||
- **Gateway client leaf.** The `swarm-controller-gateway-client` role issues for
|
||||
`gateway-client.<swarm.domain>` alone, `clientAuth` only. `swarm-controller-gateway-client.service`
|
||||
on the host that runs the controller requests it under the services-issuer identity, whose policy
|
||||
|
|
@ -229,9 +230,9 @@ handshake. Nginx verifies the controller's server leaf against the trust bundle,
|
|||
Every host that holds the services-issuer identity can obtain the gateway client leaf, which is
|
||||
every gateway host. The controller trusts exactly that identity: a gateway of this swarm.
|
||||
|
||||
Set `swarm.controller.tcp.enable` and `swarm.controller.tcp.domain` identically on every host. The
|
||||
store's host writes both roles from them. A store host that leaves the option off has no role, and
|
||||
the issuing unit fails with the store's refusal naming it.
|
||||
Leave `swarm.controller.tcp.enable` and `swarm.controller.tcp.domain` at their defaults, or set them identically on every host. The
|
||||
store's host writes both roles from them. A store host that turns the option off has no role, and
|
||||
the pod's init container fails with the store's refusal naming it.
|
||||
|
||||
The listener reads the services root once at start. Replacing the root (about 30 years out) needs a
|
||||
controller restart as well as new leaves.
|
||||
|
|
|
|||
Loading…
Reference in a new issue