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
|
|
@ -6,8 +6,8 @@ the systemd unit each service runs today. A host with
|
|||
`services.hyperhive.k8s.enable` gets them as `system.build.k8sManifests`, a
|
||||
directory with one YAML file per object, and the images their pods run as
|
||||
`system.build.k8sImages`, which [the cluster node](node.md) loads. Rendering
|
||||
changes no unit. [The runtime switch](runtime.md) applies a service's manifests
|
||||
to the cluster, when the service's `runtime` says `"k8s"`.
|
||||
changes no unit. [The runtime module](runtime.md) applies a service's manifests
|
||||
to the cluster, and the service runs there and nowhere else.
|
||||
|
||||
## Options
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ A credential that holds a public CA file isn't a secret. `swarm-notify-router`'s
|
|||
the ConfigMap `hyperhive-ca-trust`, key `bao-server-ca.pem`, and the trust
|
||||
bundles from the key `trust-bundle.pem`.
|
||||
The manifests only name the ConfigMap, because the hive CA exists only at
|
||||
runtime. [The runtime switch](runtime.md#what-k8s-changes) publishes it from the
|
||||
runtime. [The runtime module](runtime.md#what-the-cluster-runs) publishes it from the
|
||||
host's files. A service with both kinds of credential gets one
|
||||
projected volume that merges the Secret's keys and the ConfigMap's into the
|
||||
credential directory.
|
||||
|
|
@ -125,9 +125,9 @@ credential directory.
|
|||
on the hive bridge's address, one TCP port per host service the entry names:
|
||||
the store's pod listener (`store`), the gateway's 443 for the identity
|
||||
provider (`identity`), the queue's port (`queue`) and the hive collector's
|
||||
(`collector`). Where the queue runs in the cluster, its pod on its port is
|
||||
allowed too. The node trusts the pod network's interfaces, so without the
|
||||
policy a pod reaches every port of the host. A service without `egress` has no
|
||||
(`collector`). The policy allows its pod on the queue's port too. The node trusts
|
||||
the pod network's interfaces, so without the policy a pod reaches every port of
|
||||
the host. A service without `egress` has no
|
||||
policy.
|
||||
- **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`
|
||||
|
|
@ -171,7 +171,7 @@ Services, and the queue's client port is a `LoadBalancer` Service that k3s's
|
|||
service load balancer binds on the node from `kube-system`, which the label
|
||||
doesn't cover. The level follows the cluster's Kubernetes version, so an
|
||||
upgrade can tighten it. `module-eval-k8s` reads every rendered pod against the
|
||||
level's rules, and the VM test `k8s-controller-switch` shows the API server
|
||||
level's rules, and the VM test `k8s-controller` shows the API server
|
||||
refusing a pod with a host port, a kept capability or privilege.
|
||||
|
||||
## The store login
|
||||
|
|
|
|||
Loading…
Reference in a new issue