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
|
|
@ -763,13 +763,12 @@ in
|
|||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Run the swarm's message queue in a `swarm-nats` container on this
|
||||
host. A swarm has one queue, so at most one host turns this on —
|
||||
Run the swarm's message queue as a pod in this host's cluster. A swarm has one queue, so at most one host turns this on —
|
||||
but *which* host is its own decision, not necessarily the one
|
||||
running the swarm's other shared services.
|
||||
|
||||
Off by default, and off means *absent*: no container is created
|
||||
and nothing else in the evaluated config changes.
|
||||
Off by default, and off means *absent*: no pod is rendered and nothing
|
||||
else in the evaluated config changes.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -795,8 +794,7 @@ in
|
|||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Run the review classifier in a `swarm-review-classifier` container on
|
||||
this host. It answers the swarm UI's review try-outs with `claude` on
|
||||
Run the review classifier as a pod in this host's cluster. It answers the swarm UI's review try-outs with `claude` on
|
||||
the Anthropic API key the operator sets in the swarm UI, or writes to the secret store at
|
||||
`secret/swarm/services/review-classifier/anthropic-api-key`, field
|
||||
`api_key`.
|
||||
|
|
@ -808,9 +806,6 @@ in
|
|||
and `reviewClassifierClientKeyFile`, minted on the store's host). The
|
||||
key is never written for you: until the operator writes it the service
|
||||
runs and every run fails with "no API key…".
|
||||
|
||||
Set {option}`services.hyperhive.deploy.review-classifier.runtime` to
|
||||
`k8s` to run it as a pod in the host's cluster instead.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -819,8 +814,7 @@ in
|
|||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Run the claude login minter in a `swarm-claude-login` container on
|
||||
this host. It runs `claude auth login` for the agent an operator logs
|
||||
Run the claude login minter as a pod in this host's cluster. It runs `claude auth login` for the agent an operator logs
|
||||
in from its card in the swarm UI, and writes the credentials to that
|
||||
agent's `secret/swarm/agents/<agent>/claude-credentials`, which the
|
||||
agent's harness installs. Run it on one host: a login in progress
|
||||
|
|
@ -831,9 +825,6 @@ in
|
|||
host has the minter's store identity (the pair
|
||||
{option}`services.hyperhive.deploy.bao.claudeLoginClientCertFile`
|
||||
and `claudeLoginClientKeyFile`, minted on the store's host).
|
||||
|
||||
Set {option}`services.hyperhive.deploy.claude-login.runtime` to `k8s`
|
||||
to run it as a pod in the host's cluster instead.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -842,15 +833,11 @@ in
|
|||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Run the notification router in a `swarm-notify-router` container on
|
||||
this host. It reads the forge events swarm-controller keeps from its
|
||||
Run the notification router as a pod in this host's cluster. It reads the forge events swarm-controller keeps from its
|
||||
webhooks and queues todos for the agents they concern: assigned,
|
||||
unassigned, and cleared when the issue or pull request closes. Run
|
||||
it on one host: it handles each issue's events in order.
|
||||
|
||||
Set {option}`services.hyperhive.deploy.notify-router.runtime` to `k8s`
|
||||
to run it as a pod in the host's cluster instead.
|
||||
|
||||
On by default where
|
||||
{option}`services.hyperhive.deploy.allSwarmServices` is set and this
|
||||
host has the router's store identity (the pair
|
||||
|
|
@ -864,15 +851,11 @@ in
|
|||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Run the speech-to-text service in a `swarm-stt` container on this
|
||||
host. It transcribes the voice memos agents send, once per memo, with
|
||||
Run the speech-to-text service as a pod in this host's cluster. It transcribes the voice memos agents send, once per memo, with
|
||||
whisper.cpp; run it where the inference hardware is. The model is
|
||||
{option}`services.hyperhive.deploy.stt.settings.modelSize` (default
|
||||
`small`).
|
||||
|
||||
Set {option}`services.hyperhive.deploy.stt.runtime` to `k8s` to run it
|
||||
as a pod in the host's cluster instead.
|
||||
|
||||
On by default where
|
||||
{option}`services.hyperhive.deploy.allSwarmServices` is set and this
|
||||
host has the service's store identity (the pair
|
||||
|
|
@ -995,7 +978,10 @@ in
|
|||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Run the swarm-controller daemon on this host.
|
||||
Run the swarm-controller daemon as a pod in this host's cluster
|
||||
({option}`services.hyperhive.deploy.k8s.enable`, on by default where this
|
||||
is set). It needs {option}`services.hyperhive.swarm.controller.tcp.enable` (on by default):
|
||||
the gateway reaches the pod over its TCP listener.
|
||||
|
||||
Off by default and deliberately not derived from
|
||||
{option}`services.hyperhive.deploy.hive-controller.enable`: a swarm
|
||||
|
|
@ -1003,9 +989,8 @@ in
|
|||
rather than about whether it runs a hive.
|
||||
|
||||
Also serves the swarm UI from this host. The UI is a view onto the
|
||||
controller's state and reaches it over that daemon's unix socket,
|
||||
so the host that runs the controller is the only host that can
|
||||
serve it.
|
||||
controller's state and reaches it through the pod's Service, so the
|
||||
host that runs the controller is the only host that can serve it.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue