Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/docs/4-implementation/k8s/runtime.md
Author SHA1 Message Date
atlas
76c01ee5ac k8s: the gateway's group reads the store credential files nginx includes 2026-11-30 22:20:28 +01:00
atlas
e1e9b5fa00 bind health listeners to the pod's loopback and probe them by exec 2026-11-30 22:20:28 +01:00
maia
507aef0557 k8s: the store-credential unit starts at fork, off the boot and switch path
`swarm-bao-store-auth` was a retrying oneshot on multi-user.target. A
oneshot's start job stays pending through its restarts, so a boot or a switch
with the secret store sealed waited on it for up to 15 minutes, the same
shape as #6901's CA publisher.

It is now `Type=simple` with the shared retry kept: the start job is done at
fork and the unit keeps trying until the store answers. `RemainAfterExit`
leaves it `active (exited)` once the credential is out, and the 15-minute
start timeout goes, as a start job done at fork has no use for it. Nothing
orders after the unit: the gateway reads the file at its next reload and the
pods wait in ContainerCreating for the Secret.

`is-active` is now true while the script runs and `systemctl restart` returns
at fork, so the k8s-services and k8s-nats tests wait for `SubState=exited` where they relied
on either.

Closes #6937
2026-11-30 22:20:28 +01:00
atlas
bb7257098b the queue's exporter asks every request for a login the gateway supplies 2026-11-30 22:20:28 +01:00
atlas
7e5ef6a648 the log and metrics stores ask every request for a credential the gateway supplies
Each store runs with -httpAuth.* and a credential from the secret store, published to the namespace as a Secret by the host. The gateway's locations send it after auth_request has passed, and the collector's scrape and push take the same one, so a process on the node that bypasses the gateway is refused.
2026-11-30 22:20:28 +01:00
atlas
ac85faa417 run the metrics store and its auth responders as pods 2026-11-30 22:20:15 +01:00
atlas
0afd210ce7 k8s: the ca-trust publisher no longer holds multi-user.target while it waits for the setup 2026-11-30 22:19:38 +01:00
atlas
003708101c swarm-nats: the pod's raw rule lets through the interfaces the firewall opens the client port on
The hostPort's raw-table drop for the queue's client port let through only the host's loopback, the bridge and the pods' interfaces, so a hive on another host, reaching the queue over wg0 where the firewall's own rule opens the port, timed out. The rule now also returns for every interface whose networking.firewall.interfaces entry opens the port. semi-spread dumps the queue's network state when the hive cannot reach it, and asserts the port answers over wg0 and not on the public address.
2026-11-30 22:19:38 +01:00
atlas
6b574ab437 run the log store and its auth responders as pods
swarm-logs-auth and swarm-metrics-auth take --listen for a TCP address beside
--socket. The log store is a Deployment on a static local volume that is its
old container's data directory, behind a ClusterIP Service the gateway dials by
name. Its two auth_request responders are one unpinned pod with a jwt role.
The renderer gains a plain HTTP listener, a probe path, fsGroupChangePolicy,
and one policy for a pod with both a listener and egress.
2026-11-30 22:19:38 +01:00
atlas
dda7b9f39a full-setup and the host swarmctl reach the controller as a pod, not through a host socket 2026-11-30 22:19:18 +01:00
atlas
fc2b34488b require k8s: swarm services with a pod run in the cluster only 2026-11-30 22:19:18 +01:00
atlas
1df8b50436 pin queue and poller state to per-service node labels instead of the hostname 2026-11-30 22:17:18 +01:00
atlas
a227bb8a91 remove swarmctl migrate, migrate.json and the migrate docs 2026-11-30 22:17:17 +01:00
atlas
57be420390 k8s: the queue's client port is a loadbalancer service
The queue's client port was a hostPort on 0.0.0.0, which Pod Security baseline and restricted forbid. It is a LoadBalancer Service now, which k3s's service load balancer binds on every address of the node with a hostPort of its own in kube-system, so hives on other hosts keep their URL. No node port is allocated. The stt policy allows the load balancer's pods in place of the queue's, and the prune unit waits for them to go before the host unit starts. The egress published-port rule and the raw-table rules apply to the load balancer's hostPort as to the pod's.
2026-11-30 22:17:17 +01:00
atlas
fb6e63f40e egress: the forward chain accepts the flows the host publishes for the agents
On a host with the egress intercept on, the forward chain rejected an agent's traffic to the queue once the queue ran as a pod: the pod's hostPort rewrites the destination to the pod, and the packet then leaves the bridge for the cluster. The chain now accepts TCP that the host's NAT redirected whose original destination is the bridge's address at a published port, which the queue adds when it runs in the cluster. Everything else from the bridge to the cluster stays refused. The nats switch test runs with the intercept on.
2026-11-30 22:17:17 +01:00
atlas
9fdb62cee7 k8s: the queue's exporter is a ClusterIP service only the node reaches
The exporter's metrics port was a hostPort on the bridge's address, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, and the pod has a NetworkPolicy that admits the client port from any source and nothing else, so only the node reads the exporter, as the raw-table rules made it. The gateway's /metrics location dials the Service by name through nginx's resolver. The raw-table rules no longer name the exporter's port.
2026-11-30 22:17:17 +01:00
atlas
13701363a1 k8s: the controller's listener is a ClusterIP service the host dials by name
The controller's api port was a hostPort on the node, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, behind a NetworkPolicy that admits only the node. The host's resolver (the hive's dnsmasq) forwards cluster.local to CoreDNS, and the gateway dials the Service by name through nginx's resolver. tcp.hostAddress goes.
2026-11-30 22:17:17 +01:00
atlas
5e90a88b13 k8s: stt's pod runs in a user namespace of its own 2026-11-30 22:17:17 +01:00
atlas
973fac1889 k8s: stt's pod gets a network policy: dns and four host ports out, nothing in 2026-11-30 22:17:17 +01:00
atlas
d855805c2b k8s: the controller pod keeps no volume; the state gate goes 2026-11-30 22:17:17 +01:00
atlas
55ba905259 k8s: the queue's pod mounts the host unit's store in place 2026-11-30 22:17:17 +01:00
atlas
6858496cad k8s: stt and ci-metrics start without a state gate 2026-11-30 22:17:17 +01:00
atlas
f72bb9e23e docs: say what the nats pod does and doesn't isolate 2026-11-30 22:17:16 +01:00
atlas
3588b5a854 docs: the start gate describes what the pod runs 2026-11-30 22:17:16 +01:00
atlas
ec1e1dd125 docs: the queue in the cluster 2026-11-30 22:17:16 +01:00
atlas
ac86631a2f docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout 2026-11-30 22:15:10 +01:00
atlas
783687f69d docs: the review classifier and the claude login minter run in the cluster with deploy.<service>.runtime 2026-11-30 22:15:10 +01:00
atlas
fc246360e3 docs: the CI run poller's runtime, cursor volume, own telemetry route and CA ConfigMap 2026-11-30 22:15:09 +01:00
atlas
57bf2dfac6 k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-30 22:15:09 +01:00
atlas
754f6376df docs: the speech-to-text service's runtime, limits and cache volume 2026-11-30 22:15:09 +01:00
atlas
d750d848eb k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-30 22:15:09 +01:00