Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/docs/4-implementation/k8s/manifests.md
Author SHA1 Message Date
atlas
bf8d77ca86 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-29 14:02:31 +01:00
atlas
2b58c769b5 require k8s: swarm services with a pod run in the cluster only 2026-11-29 14:02:31 +01:00
atlas
3d68f94e39 let a second machine join the main node's k3s and run pods from images only the main node holds 2026-11-29 14:02:31 +01:00
atlas
4dee02c81d pin queue and poller state to per-service node labels instead of the hostname 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
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
76d8121503 k8s: stt and ci-metrics start without a state gate 2026-11-29 14:02:31 +01:00
atlas
893b8de168 docs: the queue in the cluster 2026-11-29 14:02:31 +01:00
atlas
4964e05e87 docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout 2026-11-29 14:02:31 +01:00
atlas
16dbdbbeef docs: the review classifier and the claude login minter run in the cluster with deploy.<service>.runtime 2026-11-29 14:02:31 +01:00
atlas
4ac5fac9fb docs: the CI run poller's runtime, cursor volume, own telemetry route and CA ConfigMap 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
ea16b03a55 docs: the speech-to-text service's runtime, limits and cache volume 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
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