Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph

7,093 commits

Author SHA1 Message Date
atlas
44aecd6368 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-28 09:59:09 +01:00
atlas
ec7514fc5a 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-28 09:59:09 +01:00
atlas
22dfefd70e 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-28 09:59:09 +01:00
atlas
8de33b7212 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-28 09:59:09 +01:00
atlas
7a45c7f1b4 k8s: stt's pod runs in a user namespace of its own 2026-11-28 09:59:09 +01:00
atlas
975d4941ef k8s: stt's pod gets a network policy: dns and four host ports out, nothing in 2026-11-28 09:59:09 +01:00
atlas
a8ed3d96e9 k8s: the controller pod keeps no volume; the state gate goes 2026-11-28 09:59:09 +01:00
atlas
72d9cf93ef k8s: the queue's pod mounts the host unit's store in place 2026-11-28 09:59:09 +01:00
atlas
658c7fe384 k8s: stt and ci-metrics start without a state gate 2026-11-28 09:59:09 +01:00
atlas
dcbfadd644 docs: migrate status reads the gate from the pod's status 2026-11-28 09:59:09 +01:00
atlas
1b20b4be26 vm-tests: migrate status reports the state gate's answers 2026-11-28 09:59:09 +01:00
atlas
cb0a70fe14 nix: render migrate.json and wrap swarmctl with kubectl 2026-11-28 09:59:09 +01:00
atlas
aff6433efa swarmctl: migrate status reads where each service's move stands 2026-11-28 09:59:09 +01:00
atlas
560b68ea56 docs: say what the nats pod does and doesn't isolate 2026-11-28 09:59:09 +01:00
atlas
966671426f docs: the start gate describes what the pod runs 2026-11-28 09:59:09 +01:00
atlas
65ad6cf2b6 vm-tests: the state gate refuses an empty volume until the marker is written 2026-11-28 09:59:09 +01:00
atlas
c24c3f0e9c module-eval: the state gate is every stateful pod's first init container 2026-11-28 09:59:09 +01:00
atlas
eeb69f07a1 a pod with a state volume starts only on a migrated or fresh volume 2026-11-28 09:59:09 +01:00
atlas
1271920f38 docs: the queue in the cluster 2026-11-28 09:59:09 +01:00
atlas
b8c5d0ec3c vm-tests: k8s-nats-switch moves the queue between its container and the cluster 2026-11-28 09:59:09 +01:00
atlas
4c65677b8d module-eval: the queue's pod, jwt roles, host units, exposure rules and store guard 2026-11-28 09:59:09 +01:00
atlas
64016a2740 nats: runtime k8s runs the queue and its auth callout as one pod 2026-11-28 09:59:09 +01:00
atlas
eba553c90b bao: the queue pod's two jwt roles share one ServiceAccount 2026-11-28 09:59:09 +01:00
atlas
e36b526335 docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout 2026-11-28 09:59:09 +01:00
atlas
a4df766d53 vm-tests: k8s-controller-switch moves the controller between its unit and the cluster 2026-11-28 09:59:09 +01:00
atlas
3d651d9b26 module-eval: the controller's runtime, hostPort hop, listener leaf and rev rollout 2026-11-28 09:59:09 +01:00
atlas
452f1af675 k8s: deploy.swarm-controller.runtime moves the controller between its unit and the cluster 2026-11-28 09:59:08 +01:00
atlas
a7ffbd328e docs: the review classifier and the claude login minter run in the cluster with deploy.<service>.runtime 2026-11-28 09:59:08 +01:00
atlas
a0215e917f vm-tests: k8s-runtime-switch moves the review classifier and the claude login minter with the router 2026-11-28 09:59:08 +01:00
atlas
7fd0107462 module-eval: the claude daemons' units, host-mode containers, pods, jwt roles and refusals 2026-11-28 09:59:08 +01:00
atlas
b2e9e81320 k8s: deploy.review-classifier.runtime and deploy.claude-login.runtime move the claude daemons between their containers and the cluster 2026-11-28 09:59:08 +01:00
atlas
9d7a3fd958 docs: the CI run poller's runtime, cursor volume, own telemetry route and CA ConfigMap 2026-11-28 09:59:08 +01:00
atlas
bc530cec3d vm-tests: k8s-runtime-switch moves the CI run poller with the router and the speech-to-text service 2026-11-28 09:59:08 +01:00
atlas
6bb155e5cf k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster 2026-11-28 09:59:08 +01:00
atlas
a542498510 k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-28 09:59:08 +01:00
atlas
49bedb5108 vm-tests: k8s-runtime-switch moves the speech-to-text service with the router 2026-11-28 09:59:08 +01:00
atlas
2be4ba1a09 docs: the speech-to-text service's runtime, limits and cache volume 2026-11-28 09:59:08 +01:00
atlas
609a22a656 k8s: deploy.stt.runtime moves the speech-to-text service between its container and the cluster 2026-11-28 09:59:08 +01:00
atlas
7dafd20a10 vm-tests: k8s-runtime-switch moves the router between its container and the cluster and back 2026-11-28 09:59:08 +01:00
atlas
0a65778c85 k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-28 09:59:08 +01:00
atlas
d4eab3348c k8s: a pod's public CA files come from a ConfigMap, not a Secret 2026-11-28 09:59:08 +01:00
atlas
5a5e23802c vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-28 09:59:08 +01:00
atlas
e5a863ce79 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-28 09:59:08 +01:00
atlas
c70466bae7 swarm-secret-client: log in with a service-account token under BAO_AUTH=jwt 2026-11-28 09:59:08 +01:00
atlas
e3098e0d03 vm-tests: a running collector keeps its cursor when it switches to the static user 2026-11-28 09:59:08 +01:00
atlas
96b2634a4e k8s: pod logs and metrics reach the hive collector 2026-11-28 09:59:08 +01:00
atlas
25addd8b86 vm-tests: k8s-node pod reaches the hive bridge's listeners by swarm name 2026-11-28 09:59:08 +01:00
atlas
c316851466 k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-28 09:59:08 +01:00
atlas
24aa9dbc4e vm-tests: k8s-node boots a node through deploy.k8s.enable 2026-11-28 09:59:08 +01:00
atlas
408cfa7353 k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-28 09:59:08 +01:00