Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix/host-modules/k8s
Repository files (latest commit first)
Filename Latest commit message Latest commit date
maia 6a50769269 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-27 21:59:28 +01:00
..
default.nix the log and metrics stores ask every request for a credential the gateway supplies 2026-11-27 21:30:12 +01:00
host-services.nix k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-27 21:29:36 +01:00
join.nix let a second machine join the main node's k3s and run pods from images only the main node holds 2026-11-27 21:29:38 +01:00
labels.nix pin queue and poller state to per-service node labels instead of the hostname 2026-11-27 21:29:38 +01:00
node.nix run the metrics store and its auth responders as pods 2026-11-27 21:30:12 +01:00
pod-logs.nix k8s: pod logs and metrics reach the hive collector 2026-11-27 21:29:36 +01:00
render.nix the log and metrics stores ask every request for a credential the gateway supplies 2026-11-27 21:30:12 +01:00
runtime.nix k8s: deny ingress to every pod by default 2026-11-27 21:30:12 +01:00
store-credentials.nix k8s: the store-credential unit starts at fork, off the boot and switch path 2026-11-27 21:59:28 +01:00