Watch
0
0
Fork
You've already forked hyperhive
0

require k8s: swarm services with a pod run in the cluster only

This commit is contained in:
atlas 2026-11-26 00:36:09 +01:00 • committed by maia
commit 57d40ae8ea

View file

@ -29,6 +29,14 @@ the host's `/etc/hosts` entries for the names it serves
(`deploy.bao.bootstrapTokenFile`). You can still set each derived toggle on
its own, and that setting wins.
The notification router, speech-to-text service, CI run poller, review
classifier, claude login minter, queue and controller run as pods in a single-node
k3s cluster on that host, so `deploy.k8s.enable` defaults on wherever the host
enables one of them, and setting it to `false` there fails the evaluation. The
controller's TLS listener, the gateway's way in, is on by default and named
`controller.<swarm.domain>`. See
[the cluster node](../../4-implementation/k8s/node.md).
**Both default to off**, because a host can't tell whether it's meant to be
the swarm's service host. With them off, a hive is a _client_ of those
services: it configures how to reach them and runs none of them.
@ -213,18 +221,16 @@ and [`builder.md`](../../4-implementation/swarm/builder.md#binary-cache).
### CI metrics
The CI run poller, a `swarm-ci-metrics` timer unit on the host that sets
`deploy.ci-metrics.enable`; set it to `false` to opt out. With
`deploy.ci-metrics.runtime = "k8s"` it runs as a CronJob in the host's cluster. Every
The CI run poller, a CronJob in the host's cluster on the host that sets
`deploy.ci-metrics.enable`; set it to `false` to opt out. Every
five minutes it pushes the run time and queue wait of each newly finished forge Actions run to
the metrics store. What it reads and pushes:
[`ci-metrics.md`](../../4-implementation/swarm/ci-metrics.md).
### Review classifier
The review classifier's try-out service, in a `swarm-review-classifier`
container on the host that sets `deploy.review-classifier.enable`, or as a pod in the
host's cluster with `deploy.review-classifier.runtime = "k8s"`. You set the
The review classifier's try-out service, a pod in the host's cluster on the host
that sets `deploy.review-classifier.enable`. You set the
key for the runtime the swarm settings choose in the swarm UI: the **classifier
settings** card on `/jobs` takes a key for that runtime and shows whether one
exists and when it changed, never the key. "Set" means a key exists, not that it
@ -237,9 +243,8 @@ The store paths for the two keys, and what a run is and costs:
### Claude login minter
The claude login minter, in a `swarm-claude-login` container on the host that
sets `deploy.claude-login.enable`, or as a pod in the host's cluster with
`deploy.claude-login.runtime = "k8s"`. Run one: a login in progress lives in the
The claude login minter, a pod in the host's cluster on the host that sets
`deploy.claude-login.enable`. Run one: a login in progress lives in the
service's memory between its start and its code. An operator logs an agent in
from the **log in** button on its card in the swarm UI, and the agent's
harness installs the new login. The flow and the version rule:
@ -248,21 +253,18 @@ harness installs the new login. The flow and the version rule:
### Notification router
The notification router, in a `swarm-notify-router` container on the host that
sets `deploy.notify-router.enable`. Run one: it handles each issue's events in
The notification router, a pod in the host's cluster on the host that sets
`deploy.notify-router.enable`. Run one: it handles each issue's events in
order. It turns forge events (assigning an issue or pull request, closing it, a
failed CI run on a pull request) into todos for the agents they concern, and an
agent that's down gets its todos when it's back. Set
`deploy.notify-router.runtime = "k8s"` to run it as a pod in the host's cluster
instead of the container. The flows and the delivery path:
agent that's down gets its todos when it's back. The flows and the delivery path:
[`notify-router.md`](../../4-implementation/swarm/notify-router.md), and
[Host setup](../../4-implementation/swarm/notify-router.md#host-setup).
### Speech to text
The speech-to-text service, in a `swarm-stt` container on the host that sets
`deploy.stt.enable`, or as a pod in the host's cluster with
`deploy.stt.runtime = "k8s"`. Run it where the inference hardware is: it
The speech-to-text service, a pod in the host's cluster on the host that sets
`deploy.stt.enable`. Run it where the inference hardware is: it
transcribes with whisper.cpp. An agent that receives a voice memo sends the
audio to it over the queue and gets the text back, and a memo sent to several
agents costs one run. `deploy.stt.settings.modelSize` picks the model (`small`