Watch
0
0
Fork
You've already forked hyperhive
0

docs: the speech-to-text service's runtime, limits and cache volume

This commit is contained in:
atlas 2026-11-21 23:19:32 +01:00 • committed by maia
commit f0573125fb

View file

@ -23,11 +23,12 @@ A service gets manifests on the host whose configuration deploys it:
| --------------------- | ---------- | ------------------------------------------------------------------------------------------------ |
| `swarm-controller` | Deployment | ServiceAccount, PersistentVolumeClaim `swarm-controller-state`, ConfigMap `swarm-controller-etc` |
| `swarm-notify-router` | Deployment | ServiceAccount |
| `swarm-stt` | Deployment | ServiceAccount, PersistentVolumeClaim `swarm-stt-state` |
| `swarm-ci-metrics` | CronJob | ServiceAccount, PersistentVolumeClaim `swarm-ci-metrics-state` |
`namespace.yaml` holds the Namespace. NATS with its auth responder,
`swarm-review-classifier`, `swarm-claude-login` and `swarm-stt` have no
manifests yet: their images don't exist yet.
`swarm-review-classifier` and `swarm-claude-login` have no manifests yet: their
images don't exist yet.
## One source: the unit
@ -97,6 +98,15 @@ credential directory.
escalation, every capability dropped, the runtime's default seccomp profile,
and no mounted API token. A service that logs in to the store gets a token
of its own, [below](#the-store-login).
- **Resources:** the unit's `MemoryMax` becomes the container's memory limit
(systemd's `K`, `M`, `G` and `T` are Kubernetes' `Ki`, `Mi`, `Gi` and `Ti`; a
byte count passes unchanged; `infinity` sets none) and its `CPUQuota`, a
percent of one core, becomes the cpu limit in millicores (`400%` is
`4000m`). The renderer sets no `requests`, so Kubernetes reserves the limits
on the node. A value in another form fails evaluation. `TasksMax` has no pod
field, so the renderer drops it. The unit's sandbox settings
(`MemoryDenyWriteExecute`, `SystemCallFilter`, `PrivateUsers` and the rest)
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