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
|
|
@ -84,7 +84,7 @@ choices behind the defaults.
|
|||
|
||||
## Host setup
|
||||
|
||||
The speech-to-text service, in a `swarm-stt` container on the host that sets
|
||||
The speech-to-text service, a pod in the cluster of the host that sets
|
||||
`deploy.stt.enable`. `allSwarmServices` defaults it on wherever the host has the
|
||||
service's store identity, like the other swarm services. Run it where the inference
|
||||
hardware is: it transcribes with whisper.cpp.
|
||||
|
|
@ -97,15 +97,15 @@ model (`small` by default, or `base`), and `modelFile` takes any other ggml
|
|||
model. The cache time, the limits on file size, audio length and run time, and
|
||||
how many requests it holds at once are settings next to it.
|
||||
|
||||
With `deploy.stt.runtime = "k8s"` on a host that runs the cluster
|
||||
(`deploy.k8s.enable`), the service runs as a pod and the host has no container.
|
||||
The service runs as a pod in the host's cluster (`deploy.k8s.enable`, which the
|
||||
service turns on by default), and the host has no container.
|
||||
The pod has the unit's memory and CPU ceilings as limits and its cache on a
|
||||
volume of the cluster. The systemd sandbox stays on the host, and the pod has
|
||||
the security shape every pod has, in a user namespace of its own as the unit has
|
||||
`PrivateUsers`. The pod's NetworkPolicy lets it reach cluster DNS and the store,
|
||||
identity provider, queue and hive collector on the host and nothing else, and
|
||||
admits no ingress. Nothing moves in a switch, so each side keeps the cache it
|
||||
last had; see [the runtime switch](../k8s/runtime.md).
|
||||
admits no ingress. An upgrade from the container doesn't carry its cache over; see
|
||||
[the runtime module](../k8s/runtime.md).
|
||||
|
||||
The audio comes from rooms with outside people, so the service runs as its own
|
||||
unprivileged user under a tight systemd sandbox, with a memory ceiling and a CPU
|
||||
|
|
|
|||
Loading…
Reference in a new issue