Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/host-modules/k8s
Author SHA1 Message Date
atlas
a07e50cfe4 remove swarmctl migrate, migrate.json and the migrate docs 2026-11-29 14:02:31 +01:00
atlas
e05b8991c4 k8s: the hyperhive namespace enforces pod security restricted
No pod in the namespace has a hostPort any more, and the census found nothing else that restricted refuses. The namespace now carries the restricted level for enforce, warn and audit, so the API server refuses a pod that drifts. The bao-login test's probe pods get the container security context restricted asks for. The controller switch test shows the API server admitting a compliant pod and refusing the same pod with a host port, a kept capability or privilege.
2026-11-29 14:02:31 +01:00
atlas
81b8b0a44c 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-29 14:02:31 +01:00
atlas
2b1ff369f4 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-29 14:02:31 +01:00
atlas
e1a8fc0dbf k8s: stt's pod runs in a user namespace of its own 2026-11-29 14:02:31 +01:00
atlas
a06d708746 k8s: stt's pod gets a network policy: dns and four host ports out, nothing in 2026-11-29 14:02:31 +01:00
atlas
713a89dff7 k8s: the controller pod keeps no volume; the state gate goes 2026-11-29 14:02:31 +01:00
atlas
6ea52666d0 k8s: the queue's pod mounts the host unit's store in place 2026-11-29 14:02:31 +01:00
atlas
76d8121503 k8s: stt and ci-metrics start without a state gate 2026-11-29 14:02:31 +01:00
atlas
f659b3f220 nix: render migrate.json and wrap swarmctl with kubectl 2026-11-29 14:02:31 +01:00
atlas
cb1ea7e7e4 a pod with a state volume starts only on a migrated or fresh volume 2026-11-29 14:02:31 +01:00
atlas
454f71651c nats: runtime k8s runs the queue and its auth callout as one pod 2026-11-29 14:02:31 +01:00
atlas
676483a920 module-eval: the controller's runtime, hostPort hop, listener leaf and rev rollout 2026-11-29 14:02:31 +01:00
atlas
261bcdc5bb k8s: deploy.swarm-controller.runtime moves the controller between its unit and the cluster 2026-11-29 14:02:31 +01:00
atlas
e0ffeeb76d k8s: deploy.review-classifier.runtime and deploy.claude-login.runtime move the claude daemons between their containers and the cluster 2026-11-29 14:02:31 +01:00
atlas
043e059004 k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster 2026-11-29 14:02:31 +01:00
atlas
b75cc44f09 k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-29 14:02:31 +01:00
atlas
aead3a07d5 k8s: deploy.stt.runtime moves the speech-to-text service between its container and the cluster 2026-11-29 14:02:31 +01:00
atlas
080ea99a54 k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-29 14:02:31 +01:00
atlas
2446a8b26c k8s: a pod's public CA files come from a ConfigMap, not a Secret 2026-11-29 14:02:31 +01:00
atlas
2cda2d5fc5 k8s: pods log in to the secret store with their ServiceAccount token
The store gets a listener for the pods that asks for no client certificate,
open on the pod network's interfaces only, and a jwt auth mount with one
role per in-cluster service. The rendered pods run under a ServiceAccount
with a projected token in place of their client certificate.
2026-11-29 14:02:31 +01:00
atlas
5fcd86c4a8 k8s: pod logs and metrics reach the hive collector 2026-11-29 14:02:31 +01:00
atlas
cf30c8d861 k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-29 14:02:31 +01:00
atlas
1c82336174 k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-29 14:02:31 +01:00
atlas
2c6260ff0d k8s: render the in-cluster services' manifests from their units
services.hyperhive.k8s.enable renders a Deployment (swarm-controller,
swarm-notify-router) or CronJob (swarm-ci-metrics) per service this host
deploys into system.build.k8sManifests. The renderer reads each evaluated
unit: its environment, LoadCredential ids, state and runtime directories,
ExecStart and timer. Files the unit names are mounted at the same paths, so
the environment carries over as it is. Secrets are referenced by name only.

No unit changes. checks: k8s-manifests-all-local (kubeconform -strict,
offline schemas) and module-eval-k8s; the allLocal fixture turns the
rendering on.
2026-11-29 14:02:31 +01:00