Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/host-modules/k8s/node.nix
Author SHA1 Message Date
atlas
b1b34649e8 run grafana as a pod in the cluster
The Deployment swarm-grafana replaces the swarm-grafana container: one
replica on a static local volume that is the container's data directory,
an init container that fetches the OIDC client secret and creates the
administrator password, the datasources' bearer and the encryption key in
the secret store, and a sidecar that keeps the controller's Viewer token.
The datasources reach the stores through the gateway with that bearer, and
Grafana's /metrics asks for the stores' kind of credential, which the vhost
sends. The five host units, the journal forwarder, its client glue and the
unix-socket directory go with the container.
2026-11-30 22:20:34 +01:00
atlas
7ba9b13a04 k8s: networkmanager leaves the pod network's interfaces unmanaged 2026-11-30 22:20:28 +01:00
atlas
d87bd7c222 move flannel's wireguard port to 51830, advertise the node address as the tunnel endpoint, drop the 51820 assertion 2026-11-30 22:20:28 +01:00
atlas
5fe6cb08c4 run flannel's wireguard-native backend on every k8s node 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
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
fc2b34488b require k8s: swarm services with a pod run in the cluster only 2026-11-30 22:19:18 +01:00
atlas
5e0ab15fa5 let a second machine join the main node's k3s and run pods from images only the main node holds 2026-11-30 22:17: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
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
d750d848eb k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-30 22:15:09 +01:00
atlas
6e59393830 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-30 22:15:09 +01:00
atlas
f55068db28 k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-30 22:15:09 +01:00
atlas
8fe2be87e7 k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-30 22:15:09 +01:00