homek8s/docs/cluster-overview.md

42 KiB
Raw Blame History

title created updated author tags status verified
Home Lab Kubernetes Cluster — Current State 2026-10-26 2026-10-26 Lance Walters (written with Hermes devops agent)
homelab
kubernetes
kubeadm
wireguard
cilium
forgejo
garage
current 2026-10-26T19:17Z

Home Lab Kubernetes Cluster — Current State

Provenance. Everything marked (live) was read off the running cluster or hosts on 2026-10-26 between 19:00 and 19:17 UTC. Anything not marked live comes from the GitOps repo sirius/homek8s at commit bd5057c or from the home-k8s Hermes skill, and is labelled as such. Section 10 is the command log. Where the skill and reality disagree, reality is written here and the disagreement is listed in §9.3.

Related: WireGuard Mesh, Home Lab Runbook, Pi Reboot Recovery


1. At a glance

(all live)

Property Value
Nodes 3 — siriussec (control-plane + worker), rpi (worker / network edge), linode (worker, remote cloud)
Kubernetes v1.36.4 on all three, kubeadm-bootstrapped, single control plane
API endpoint https://10.10.0.2:6443 — WireGuard overlay address only
CNI Cilium v1.20.1 (Helm-managed by Flux), kube-proxy replacement, native routing (ipv4NativeRoutingCIDR: 10.244.0.0/16, autoDirectNodeRoutes), no VXLAN in the data path
Gateway API Cilium Gateway, hostNetwork Envoy on nodes labelled node-role.kubernetes.io/gateway=true
Pod network 10.244.0.0/16, /24 per node: siriussec 10.244.0.0/24, rpi 10.244.1.0/24, linode 10.244.2.0/24
Service network 10.96.0.0/12
Storage local-path (rancher.io/local-path, default SC, provisioner pinned to siriussec), data under /opt/local-path-provisioner
GitOps Flux v2 (source, kustomize, helm, notification controllers), watching sirius/homek8s master, applied revision bd5057c
Databases CloudNativePG 1.30.0, two clusters: forgejo/pg (10Gi) and sirius-growth/portal (5Gi)
Public ingress Cloudflare tunnel sirius home → cloudflared (systemd on rpi) → http://10.10.0.2:8080
Workloads 31 running pods across 9 namespaces, plus 6 completed pods (CI prune jobs and leftovers)
Metrics none — metrics-server is not installed, kubectl top fails (live: error: Metrics API not available)

In one paragraph. This is a three-node kubeadm cluster stitched together over WireGuard rather than a LAN. The T480 (siriussec) is the control plane and does the heavy lifting — app pods, databases, Forgejo, the AMD64 CI runner all live there because it is the only amd64 box with real disk. The Raspberry Pi (rpi) is the network edge: it is the WireGuard hub, the Cloudflare tunnel host, and the ARM64 CI runner. The Linode VPS (linode) rejoined as a third worker on 2026-10-26 and carries pod CIDR 10.244.2.0/24 over the Pi's wg-remote tunnel. There is no VXLAN and no kube-proxy: Cilium routes pod traffic natively, so every node must be reachable at its pod CIDR over WireGuard, and the API server is firewalled to the overlay plus pod CIDR only.


2. Topology

(live — kubectl get nodes -o wide, node JSON)

Node Hardware OS / kernel Arch LAN Overlay Pod CIDR Roles / labels Taints
siriussec ThinkPad T480 Arch Linux, 6.18.50-2-lts amd64 192.168.1.179 (enp0s31f6) 10.10.0.2 (wg0) 10.244.0.0/24 control-plane, worker, gateway=true, node-role…/gateway=true, exclude-from-external-load-balancers none
rpi Raspberry Pi (8 GiB) Debian 13 trixie, 6.18.39+rpt-rpi-2712 arm64 192.168.1.125 (eth0) 10.10.0.1 (wg0), 10.20.0.2 (wg-remote) 10.244.1.0/24 worker, node-role…/gateway=true, node-role…/traffic, dedicated=network none
linode Linode VPS, Atlanta Debian 13 trixie, 6.12.113+deb13-amd64 amd64 public 50.116.38.217 10.10.0.5 (dummy-k8s), 10.20.0.1 (wg0, hub role) 10.244.2.0/24 dedicated=network none

Node conditions are clean on all three: Ready=True, MemoryPressure/DiskPressure/PIDPressure/NetworkUnavailable=False (live).

2.1 What the roles actually mean

siriussec — control plane and the only real compute node. Runs kube-apiserver, etcd, kube-controller-manager, kube-scheduler as static pods, plus every application pod, both CNPG database instances, Forgejo, and the AMD64 CI runner. There is deliberately no NoSchedule taint on the control plane so it can also be a worker. It sits on the API-over-WireGuard side: :6443 is reachable only from lo, wg0, and the pod CIDR (§3.4).

rpi — network edge, not app compute. WireGuard hub, cloudflared tunnel host, ARM64 CI runner (two runners, actually), and Gateway node. The skill says rpi carries dedicated=network:PreferNoSchedule; live, it carries the label but no taint (drift, §9.3). Pods that must not land there still pin by nodeSelector rather than relying on the taint.

linode — a real kubeadm worker again. It runs a full Cilium agent and has pod CIDR 10.244.2.0/24. It is not a wg0 peer of the Pi: it is reached over the Pi's wg-remote interface (10.20.0.2 ↔ 10.20.0.1) with a static route for its pod CIDR. See §3.2.

2.2 Pinning rules (live, from Deployment specs)

Rule Who uses it Why
nodeSelector: kubernetes.io/hostname: siriussec forgejo, forgejo-runner-amd64, local-path-provisioner, piedmont-*, sirius-growth-*, siriusdevops-*, cilium-operator amd64 images; rpi is arm64, and the PVs live on siriussec's NVMe
nodeSelector: kubernetes.io/hostname: rpi forgejo-runner-arm64, forgejo-runner-deploy-arm64 needs the Pi's Docker socket and arm64 host
label dedicated=network (on rpi and linode) none currently — both are labellable targets for future network/light pods intended for traffic/edge workloads
node-role.kubernetes.io/gateway=true (rpi + siriussec; not linode) cilium-envoy DaemonSet Gateway listeners follow the label

Several app Deployments also carry a stray tolerations: [{key: dedicated, effect: PreferNoSchedule}] — harmless today because no node has that taint; it is residue from when rpi was tainted.

Why apps are pinned to siriussec and not spread: the PVs are local-path on siriussec's /opt/local-path-provisioner, so a pod with a PVC cannot move. The public site images are amd64 only, and rpi is arm64. All three production site namespaces and both databases therefore live on one machine — that is a deliberate, documented single point of failure, not an oversight.


3. WireGuard

3.1 Two hubs, three paths

There are two independent WireGuard topologies in play, and conflating them is the classic mistake here.

                         ┌───────────────────────────────────────────┐
                         │  rpi  (LAN 192.168.1.125)                 │
                         │  wg0       10.10.0.1/24   ← MESH HUB      │
                         │  wg-remote 10.20.0.2/24   ← spoke of the  │
                         │                             Linode hub    │
                         └───────┬───────────────────────┬───────────┘
              wg0 (10.10.0.2/32) │                       │ wg-remote (UDP 49194)
              PSK, endpoint       │                       │  → 50.116.38.217:51820
      192.168.1.179:50013         │                       ▼
                    ┌─────────────▼──────────┐   ┌──────────────────────────┐
                    │ siriussec 10.10.0.2    │   │ linode  10.20.0.1/24     │
                    │ (cluster API :6443)    │   │ REMOTE HUB (wg0 :51820)  │
                    └────────────────────────┘   │ dummy-k8s 10.10.0.5/32   │
                                                 │ node, pod 10.244.2.0/24  │
                    ┌────────────────────────┐   └───────┬───────────┬──────┘
                    │ Legion (laptop)        │           │           │
                    │ k8snet 10.10.0.3/32    │      10.20.0.3   10.20.0.5 + 10.10.0.3
                    │ admin kubectl only     │      (phone)     (Legion's hub-side leg)
                    │ NOT a node             │           │
                    └────────────────────────┘      10.20.0.4 + 10.10.0.6 (SG VPS + its pod CIDR 10.244.3.0/24)

(live — wg show on rpi, wg show wg0 on siriussec, wg show wg0 on linode)

Mesh hub — wg0 on rpi, 10.10.0.1/24, UDP 51820. Public key tvPloMcBwTDciWi5WbFDpQQ2xcgidcKzRI/G3IqeuCQ=. Peers:

Mesh addr Peer Endpoint seen Handshake (live) AllowedIPs on hub Notes
10.10.0.2/32 siriussec 192.168.1.179:50013 1 min ago 10.10.0.2/32, 10.244.0.0/24 PSK enabled; 301 GiB in / 12.7 GiB out
10.10.0.3/32 Legion (k8snet) 192.168.1.126:52000 48 min ago 10.10.0.3/32 admin/kubectl spoke, on the LAN; PSK enabled
10.10.0.4/32 unnamed spoke 100.91.7.84:44094 (Tailscale) 6 days 5 h ago 10.10.0.4/32 stale — peer defined but effectively dead

wg show wg0 dump | wc -l = 4 (header + 3 peers) (live).

Remote hub — wg0 on the Linode, 10.20.0.1/24, UDP 51820. Public key /2Y0XpJYd9Vl9Al6zNAlQimEYA+xY9Y5PO6nUDkfKEA=. Peers (live):

Hub addr Peer AllowedIPs Handshake
10.20.0.2/32 rpi (wg-remote, pubkey h1v1Rhrnq2N2kt454xQamL1Y1x0TaICa1zoKgyZHpkM=) 10.20.0.2/32, 10.10.0.0/24, 10.96.0.0/12, 10.244.0.0/16 ~1 min
10.20.0.3/32 phone 10.20.0.3/32 ~43 s
10.20.0.5/32 + 10.10.0.3/32 Legion (hub-side leg) 10.20.0.5/32, 10.10.0.3/32 ~1 min
10.20.0.4/32 + 10.10.0.6/32 SG VPS 10.20.0.4/32, 10.10.0.6/32, 10.244.3.0/24 (no handshake shown — idle)

Pi's wg-remote side (10.20.0.2/24, local UDP 49194) has exactly one peer, the Linode hub, with AllowedIPs = 10.20.0.0/24, 10.10.0.5/32, 10.244.2.0/24 and a 25 s keepalive. That single line is why 10.10.0.5 (the Linode node's dummy address) and the Linode pod CIDR are reachable from the Pi at all.

3.2 Address plan and AllowedIPs

  • Mesh 10.10.0.0/24 — the cluster's transport network. Node InternalIPs are 10.10.0.1/.2/.5; the API is 10.10.0.2:6443.
  • Remote hub 10.20.0.0/24 — the Linode's hub addressing, plus phone and SG VPS spokes that never touch the mesh directly.
  • Spoke AllowedIPs are 10.10.0.0/24, 10.244.0.0/16, not a full tunnel — client traffic to the internet never traverses the Pi. siriussec's conf is exactly Address = 10.10.0.2/32, Endpoint = 192.168.1.125:51820, AllowedIPs = 10.10.0.0/24, 10.244.0.0/16 (live).
  • Pod CIDRs must be in some peer's AllowedIPs. WireGuard cryptokey routing matches the destination address, so autoDirectNodeRoutes is useless unless the peer line covers the destination pod CIDR. That is why the hub's peer entries carry 10.244.x.0/24, and why the Linode hub carries 10.96.0.0/12 and 10.244.0.0/16 toward the Pi.

3.3 Why the mesh exists at all

There is no flat L2 between the T480, the Pi and a cloud VPS. Two properties force the overlay:

  1. Cilium native routing has no encapsulation. With routing-mode: native and no VXLAN, a pod on siriussec addressed as 10.244.1.x is sent as a plain packet, and the node must have a route to it. WireGuard supplies that route (ip route get <podIP> → via 10.10.0.1 dev wg0).
  2. The API server is firewalled to the overlay. On siriussec, /etc/nftables.d/k8s-api.nft (loaded by k8s-api-firewall.service, active) is:
    tcp dport 6443 iifname "lo" accept
    tcp dport 6443 iifname "wg0" accept
    ip saddr 10.244.0.0/16 tcp dport 6443 accept
    tcp dport 6443 drop
    
    (live) — so joins, kubelets and in-cluster controllers must arrive over wg0 or from the pod network. LAN 192.168.1.179:6443 is closed by design.

3.4 The 10.10.0.0/24 route-conflict hazard

On the Pi the prefix 10.10.0.0/24 is claimed twice: by wg0 (interface address 10.10.0.1/24) and by wg-remote's peer AllowedIPs (10.10.0.0/24 toward the Linode, needed for the 10.10.0.5 dummy address). The kernel prefers wg-remote, which silently black-holes the Pi's path to the API while every tunnel still shows "up".

The installed fix is /32 pins on the hub's own peers:

sudo ip route replace 10.10.0.2/32 dev wg0
sudo ip route replace 10.10.0.4/32 dev wg0
# 10.10.0.5 stays on wg-remote — it is the Linode's dummy address

(live, current state)

$ ip route get 10.10.0.2   → 10.10.0.2 dev wg0      src 10.10.0.1
$ ip route get 10.10.0.5   → 10.10.0.5 dev wg-remote src 10.20.0.2
$ ip route get 10.10.0.3   → 10.10.0.3 dev wg0      src 10.10.0.1

Persisted by wg0-routes.service on the Pi (oneshot, [email protected] [email protected], Before=kubelet.service, no Requires= so a manually-started wg0 does not fail the unit).

3.5 wg-quick unit state (live, and it matters)

Host Unit enabled active
rpi wg-quick@wg0 enabled inactive (interface was brought up manually)
rpi wg-quick@wg-remote enabled active
rpi cloudflared enabled active
siriussec wg-quick@wg0 enabled inactive (interface present, started manually)
linode wg-quick@wg0 enabled active

wg0 on both rpi and siriussec is up but its unit is inactive — expected, because the interfaces were started with wg-quick up directly. Do not "fix" this by cycling the systemd unit: /etc/wireguard/wg0.conf on the Pi is wgportal-autogenerated with SaveConfig = true, so systemctl stop rewrites the file from the live interface and can drop peers.

3.6 Health checks, hop by hop

# On the Pi
sudo wg show                              # both interfaces, handshake ages
sudo wg show wg0 dump | wc -l              # 4 = header + 3 peers
ip route get 10.10.0.2                    # must say dev wg0
ip route get 10.10.0.5                    # must say dev wg-remote
curl -sk https://10.10.0.2:6443/version   # 200 = API reachable over the mesh
kubectl get nodes                         # 3/3 Ready

3.7 Peer management — wgportal is not running

The skill describes wgportal/wg-portal:v2 as the peer manager on the Pi. Live: there is no wg-portal container and no systemd unit. /opt/wgportal/ still holds docker-compose.yml, config/, data/ (sqlite) and ADMIN.txt, and /etc/wireguard/wg0.conf still carries the wgportal AUTOGENERATED FILE - DO NOT EDIT header — but nothing is running it. Peer changes today are manual, applied to /etc/wireguard/wg0.conf (and the live interface) by hand. This is a real operational gap, not a documentation detail: there is currently no UI or API to add a peer.


4. Ingress path

Internet
  │  Cloudflare TLS (DNS + edge)
  ▼
Cloudflare Tunnel "sirius home"  (id 6d0702eb-99cc-4062-b57d-e70e2f1a7895, healthy, 4 connections)
  │
  ▼
cloudflared  (systemd on rpi, token-managed via /etc/systemd/system/cloudflared.service)
  │  HTTP, origin override per hostname
  ▼
http://10.10.0.2:8080        ← siriussec
  │
Cilium Gateway "public" (class cilium, listener http:8080)
  │  hostNetwork Envoy (DaemonSet cilium-envoy, node-role.kubernetes.io/gateway=true)
  ▼
HTTPRoute (hostname match, path match)  →  Service  →  Pod

(live: tunnel identity from the Cloudflare API, tunnel config from curl -s http://127.0.0.1:20241/config on the Pi, gateway/routes from the cluster)

4.1 The origin is 10.10.0.2:8080 — and only that address serves

The tunnel's ingress list maps every public hostname to http://10.10.0.2:8080, with originRequest.httpHostHeader set to the hostname so HTTPRoute host matching works. Verified per node from the Pi with a Host: header (live):

Origin Host: siriusdevops.com Result
10.10.0.2:8080 (siriussec) 200 (and 200 for forgejo) ✅ production origin
10.10.0.1:8080 (rpi) 503 after exactly 5.0 s ✗ Envoy running, backend unreachable
10.10.0.5:8080 (linode) no listener (000) ✗ no envoy there

Note that the Gateway status advertises all three addresses (10.10.0.1, 10.10.0.2, 10.10.0.5) because the listeners are hostNetwork ports on nodes carrying the gateway label pattern. Do not treat the Gateway's status.addresses as a load-balanced VIP — it is a list of places the port is bound, and only siriussec's binding can actually complete a request.

4.2 The co-location rule

Envoy runs hostNetwork on the gateway-labelled nodes. On rpi it does have a listener on 0.0.0.0:8080 (lib cilium-envoy), but a request for a mapped hostname hangs 5 s and returns 503, because the Envoy on rpi forwards to backend pods that live on siriussec's pod CIDR, sources the connection as reserved:ingress (10.244.1.x), and the SYN-ACK never completes under Cilium native routing. The measurable signature is the exact 5.000 s and 503.

Consequences:

  • The Envoy that serves traffic must be on the node that holds the backend pods. All app pods are on siriussec ⇒ the usable origin is siriussec, which is what the tunnel already points at.
  • Don't "fix" a 503 by rescheduling the site pods to rpi to match the gateway node — they are amd64 images and rpi is arm64.
  • Don't add a second listener on rpi, don't ip addr add the ingress IP on cilium_host, don't iptables-SNAT Envoy. BPF bypasses netfilter; those edits look plausible and do nothing.

4.3 503 vs 404

  • 404 = the Gateway has no HTTPRoute for that hostname (or a route's path prefix swallowed it). A Cloudflare-visible 404 on a hostname that is in the tunnel's ingress list means "tunnel fine, no route".
  • 503 = a route exists but its backend Service has no ready endpoints.
  • paaas.siriusdevops.com is currently mapped in the tunnel and returns 404 with 0 bytes because no HTTPRoute claims it (live).

4.4 Live public hostnames

(read from the tunnel's own metrics port on rpi — curl -s http://127.0.0.1:20241/config)

Hostname Origin HTTPRoute Status (live origin check)
siriusdevops.com http://10.10.0.2:8080 siriusdevops/siriusdevops 200, 31813 B
www.siriusdevops.com http://10.10.0.2:8080 same 200
forgejo.siriusdevops.com http://10.10.0.2:8080 forgejo/forgejo 200, 15008 B
paaas.siriusdevops.com http://10.10.0.2:8080 none 404 (0 B)
piedmonthomesvc.com http://10.10.0.2:8080 piedmont/piedmont 200, 7067 B
www.piedmonthomesvc.com http://10.10.0.2:8080 same 200
siriusgrowthsolutions.com http://10.10.0.2:8080 sirius-growth/sirius-growth 200, 72640 B
www.siriusgrowthsolutions.com http://10.10.0.2:8080 same 200
(catch-all) http_status: 404 — must stay last

A second, inactive tunnel named piedmonthomesvc (bdcee200-7deb-4c8d-956b-2c030ebf7545) still exists in the Cloudflare account, with zero connections. Only sirius home serves traffic; do not create another.

4.5 Routes as configured (live, kubectl get httproute -A -o json)

All four routes attach to gateway-system/public. First-match path ordering matters — the /api/contact rule comes before /:

Route Path → backend
forgejo/forgejo / → forgejo:3000
siriusdevops/siriusdevops /api/contact → siriusdevops-contact:8090; / → siriusdevops-site:80
piedmont/piedmont /api/contact → piedmont-contact:8090; / → piedmont-site:80
sirius-growth/sirius-growth /api/contact → sirius-growth-contact:8090; /api/portal → sirius-growth-portal:8091; / → sirius-growth-site:80

A single ReferenceGrant exists (gateway-system/forgejo) for the cross-namespace route.

4.6 Second gateway: internal

internal/internal (namespace internal) is a Cilium Gateway on port 8081 with no HTTPRoute attached and no tunnel mapping (live). It is a spare private listener, currently unused.


5. Garage object storage

(live — Docker container on the Pi, garage status, garage bucket list)

What it is: the homelab's S3-compatible object store, used for photo and client-file buckets behind the public sites.

Property Value
Where Docker container on rpi, not in Kubernetes — image dxflrs/garage:v1.1.0, container garage, up 7 days
Compose /home/sirius/websites/garage/ (not under /opt)
State data/ (bind → /data/data) and meta/ (bind → /data/meta); config garage.toml → /etc/garage.toml
Ports 127.0.0.1:3900 S3 API, 127.0.0.1:3901 RPC, 127.0.0.1:3902 web/static — plus 10.10.0.1:3900 on the WireGuard hub address
Capacity 100 GB configured; 401.3 GB (40.8%) data available (single healthy node d053db4dfc97bf78)
Buckets sirius-growth-photos, piedmont-photos, sirius-growth-client-files

Correcting a carried-over claim: Garage is not loopback-only. Three of its four published ports are loopback-bound, but the S3 API at :3900 is also published on 10.10.0.1, the Pi's WireGuard address. A pod on siriussec can therefore reach Garage's S3 API at http://10.10.0.1:3900 over the mesh — but not the website port, which is 127.0.0.1:3902 only.

What breaks: anything that assumes 127.0.0.1:3902 (the static web endpoint) is reachable from inside the pod network. It is not — a pod's 127.0.0.1 is its own netns. Kubernetes workloads must use the 10.10.0.1:3900 S3 endpoint, or the in-image /photos/ alias baked into the site images as a fallback. That alias is a deliberate fallback, not evidence the bucket is gone.


6. Workloads

(live — kubectl get pods -A -o wide at 19:0x UTC. 31 Running, 6 Completed. This table is the running set, 31 rows.)

6.1 Running pods

# Namespace Pod Node IP Purpose Exposure
1 cnpg-system cnpg-controller-manager-955555df8-d5m8j siriussec 10.244.0.121 CloudNativePG operator (1.30.0) internal
2 flux-system helm-controller-5788b55f98-zzgmw siriussec 10.244.0.210 Flux HelmRelease reconciler internal
3 flux-system kustomize-controller-645cdc4b67-r2gl6 siriussec 10.244.0.30 Flux kustomize reconciler (applies all YAML) internal
4 flux-system notification-controller-7cd6d4994b-drh8x siriussec 10.244.0.125 Flux alerts/webhooks internal
5 flux-system source-controller-56549698b5-2lvmc siriussec 10.244.0.44 Flux git artifact fetcher internal
6 forgejo forgejo-67847d596c-jpb7x siriussec 10.244.0.197 Forgejo 16.0.5 git/CI/registry UI public forgejo.siriusdevops.com
7 forgejo forgejo-runner-amd64-65fdfdf884-bb88l siriussec 10.244.0.17 Actions runner (dind sidecar), labels docker-amd64, amd64 internal
8 forgejo forgejo-runner-arm64-7566647d9f-7q2wk rpi 10.244.1.128 Actions runner via Pi host Docker socket, labels docker-arm64, arm64, docker internal
9 forgejo forgejo-runner-deploy-arm64-b748d7c6f-66r5j rpi 10.244.1.167 Actions runner, label deploy-arm64 only (site deploys) internal
10 forgejo pg-1 siriussec 10.244.0.159 CNPG PostgreSQL for Forgejo (1 instance) internal
11 kube-system cilium-cz7w6 siriussec 10.10.0.2 (host-net) Cilium agent v1.20.1 internal
12 kube-system cilium-dswfb rpi 10.10.0.1 (host-net) Cilium agent v1.20.1 internal
13 kube-system cilium-lst6f linode 10.10.0.5 (host-net) Cilium agent v1.20.1 internal
14 kube-system cilium-envoy-kfd7w rpi 10.10.0.1 (host-net) Gateway data plane (listener present, backends unreachable — §4.2) internal
15 kube-system cilium-envoy-q2jn8 siriussec 10.10.0.2 (host-net) Gateway data plane — the one serving public traffic public (8080)
16 kube-system cilium-operator-6fc68c64d6-cw4rj siriussec 10.244.0.2x Cilium operator (leader election) internal
17 kube-system coredns-589f44dc88-l28hh siriussec 10.244.0.109 cluster DNS (1 of 2) internal
18 kube-system coredns-589f44dc88-xtzqq siriussec 10.244.0.114 cluster DNS (2 of 2) internal
19 kube-system etcd-siriussec siriussec 10.10.0.2 (host-net) cluster datastore (static pod) internal
20 kube-system kube-apiserver-siriussec siriussec 10.10.0.2 (host-net) API server :6443 (static pod) overlay + pod CIDR only
21 kube-system kube-controller-manager-siriussec siriussec 10.10.0.2 (host-net) controller manager (static pod) internal
22 kube-system kube-scheduler-siriussec siriussec 10.10.0.2 (host-net) scheduler (static pod) internal
23 local-path-storage local-path-provisioner-84f56599d-p9d6x siriussec 10.244.0.63 dynamic local PV provisioning internal
24 piedmont piedmont-contact-7897cf4d4-z764g siriussec 10.244.0.86 PHS contact-form API (Telegram) /api/contact on piedmonthomesvc.com
25 piedmont piedmont-site-66cbdd498d-tx2gc siriussec 10.244.0.94 PHS static site (nginx) piedmonthomesvc.com
26 sirius-growth portal-1 siriussec 10.244.0.173 CNPG PostgreSQL for SGS portal (1 instance) internal
27 sirius-growth sirius-growth-contact-5448485967-n2flh siriussec 10.244.0.219 SGS contact API /api/contact on siriusgrowthsolutions.com
28 sirius-growth sirius-growth-portal-89d598f55-pwf74 siriussec 10.244.0.146 SGS customer portal (:8091) /api/portal
29 sirius-growth sirius-growth-site-757d4f96b6-wcnpn siriussec 10.244.0.170 SGS marketing site (nginx) siriusgrowthsolutions.com
30 siriusdevops siriusdevops-contact-b5df76cd4-b98sb siriussec 10.244.0.244 SiriusDevOps contact API /api/contact on siriusdevops.com
31 siriusdevops siriusdevops-site-566968fffb-52z5n siriussec 10.244.0.85 SiriusDevOps site (nginx) siriusdevops.com

Nothing runs on linode except its Cilium agent. rpi runs only the two runners plus its Cilium/Envoy agents.

6.2 Completed / non-running pods (6)

forgejo/forgejo-67847d596c-xn2br (old ReplicaSet, Completed, 42 d — harmless residue), three forgejo-runner-prune-* Job pods (the nightly docker-prune CronJob), and kube-system/{curl-test,test} (41 d one-off probes).

6.3 Namespaces

Namespace Age Contents
kube-system 45 d control plane, Cilium, Envoy, CoreDNS
kube-public, kube-node-lease, default 45 d kubeadm defaults
forgejo 45 d Forgejo, its CNPG cluster, 3 runners, prune CronJob
cnpg-system 45 d CloudNativePG operator
flux-system 41 d 4 Flux controllers, GitRepository, 4 Kustomizations
gateway-system 45 d Gateway public
internal 41 d Gateway internal
local-path-storage 45 d provisioner
siriusdevops 43 d site + contact
piedmont 26 d site + contact
sirius-growth 8 d site + contact + portal + CNPG cluster
cilium-secrets 45 d Gateway TLS/secret sync target

6.4 Forgejo Actions runners

Three runners, all registered against https://forgejo.siriusdevops.com (never an in-cluster URL — the checkout URL must resolve from inside job containers).

Deployment Node Docker access runs-on labels Config
forgejo-runner-arm64 rpi Pi host socket /var/run/docker.sock + host docker-static binary + cli-plugins docker-arm64, arm64, docker CM forgejo-runner-config key arm64.toml; capacity 1; root + privileged; pod supplementalGroups: [984]; no docker_host (would duplicate the socket mount)
forgejo-runner-amd64 siriussec privileged docker:27-dind sidecar, PVC forgejo-runner-amd64 (20 Gi) docker-amd64, amd64 key amd64.toml; capacity 1; docker_host: unix:///var/run/docker.sock
forgejo-runner-deploy-arm64 rpi Pi host socket, same bind mounts deploy-arm64 only key deploy-arm64.toml; capacity 1; timeout 30m; state on hostPath /opt/siriusdevops/runner-deploy/data

Label discipline that must not be broken:

  • docker lives only on the Pi arm64 runner, so legacy runs-on: docker jobs stay arm64. x86 builds must say docker-amd64.
  • deploy-arm64 is disjoint from the CI labels in both directions, so a 20–40 minute onionwire Rust build on the shared Pi runner (capacity 1) can no longer starve deploy-site. Residual coupling: deploy-portal.yml still uses docker-amd64, which a site build also uses.
  • capacity: 1 everywhere is load-bearing, not conservatism: the amd64 dind is one daemon (two concurrent builds starve and apt loops on Ign:), and the arm64 runner serialises writes into the shared onionwire-target-ci volume.

Workflow labels actually present in the local checkouts (live grep of .forgejo/workflows): docker (×8) and docker-amd64 (×3) in onionwire; deploy-arm64, docker-amd64 in sirius-growth; docker-amd64 in siriusdevops-contact.


7. CI/CD flow

Application images

git push → Forgejo Actions
             ├─ arm64 / docker jobs      → forgejo-runner-arm64      (rpi, host docker)
             ├─ x86_64 jobs              → forgejo-runner-amd64      (siriussec, dind)
             └─ site deploys             → forgejo-runner-deploy-arm64 (rpi)
          → image pushed to the Forgejo registry (forgejo.siriusdevops.com/sirius/<image>:latest)
          → Deployments use imagePullPolicy: Always, so the pod must be recreated
            (rollout restart alone can keep the old digest — verify the pod's imageID)

Cluster manifests

edit apps/base/<app>/* → push to sirius/homek8s master
  → Flux GitRepository polls (interval 1m) → artifact at new SHA
  → kustomization infrastructure  (path ./infrastructure/home)
  → kustomization apps            (path ./apps/home, dependsOn infrastructure)

New app = new apps/base/<app>/ (namespace, Deployment, Service, HTTPRoute) plus one line in apps/home/kustomization.yaml. New public hostname = that HTTPRoute plus one ingress entry on the existing sirius home tunnel.

Force a recheck when Flux's status line is stale (a push is not applied until the GitRepository artifact is that SHA):

kubectl -n flux-system annotate gitrepository flux-system \
  reconcile.fluxcd.io/requestedAt="$(date +%s)" --overwrite
kubectl -n flux-system annotate kustomization apps \
  reconcile.fluxcd.io/requestedAt="$(date +%s)" --overwrite

Live Flux state: GitRepository flux-system → https://forgejo.siriusdevops.com/sirius/homek8s, Ready, artifact master@sha1:bd5057c; all four Kustomizations (flux-system, gateway-api-crds, infrastructure, apps) Ready=True on the same revision. Cilium is managed as a HelmRelease by Flux — never helm upgrade it by hand.

Repository layout:

clusters/homek8s/      flux-system GitRepository + 4 Kustomizations
infrastructure/home/   entrypoint for infra (cilium, gateway, storage, databases)
apps/home/             forgejo, siriusdevops, piedmont, sirius-growth
monitoring/controllers/home/   (present in repo, NOT deployed — no monitoring namespace exists)

8. Storage and data

(live — kubectl get pvc,pv -A, du on siriussec)

StorageClass local-path (default, WaitForFirstConsumer, no expansion), provisioner pinned to siriussec, root /opt/local-path-provisioner.

PVC NS Size On-disk dir Used Holds
forgejo-data forgejo 20 Gi pvc-75ba7bc3…_forgejo_forgejo-data 12 G Forgejo repos, LFS, avatars, attachments — must be backed up
forgejo-runner-amd64 forgejo 20 Gi pvc-b867904c…_forgejo_forgejo-runner-amd64 18 G (18 G of it the dind /docker data-root) CI scratch — disposable, but see the hazard below
pg-1 forgejo 10 Gi pvc-3c0ba824…_forgejo_pg-1 643 M Forgejo Postgres data — must be backed up
portal-1 sirius-growth 5 Gi pvc-3348c52c…_sirius-growth_portal-1 224 M SGS portal Postgres data — must be backed up

Dind growth hazard. The amd64 runner's PVC is nominally 20 Gi and currently sits at 18 G (90%). It has previously grown to ~50 GB from heavy Android/Rust builds and pushed the node into DiskPressure, which evicted the runner and left Forgejo and pg-1 Pending. Docker image GC does not reclaim the data-root. Rule: when it approaches the cap, scale the runner to 0 first, then wipe .../docker/* (keeping runner.ini beside it), then scale back and re-pull the job image — wiping it under a live or restarting pod leaves dockerd half-initialised and every pull fails. Note the data-root also hosts the named volumes CI depends on (cargo-target, Android SDK, Gradle cache), so a wipe makes the next run fully cold.

What must be backed up: forgejo-data, both Postgres data dirs (pg-1, portal-1), the Pi's Garage data/ + meta/, and /etc/wireguard/ on the Pi. The runner PVC and the Pi's Docker images are rebuildable.

Host disks (live): siriussec / 214 G, 141 G used (70%, 62 G free); rpi / 917 G, 506 G used (58%, 374 G free).


9. Known hazards and runbook pointers

9.1 The four that actually bite

  1. A Pi reboot loses wg0 and silently breaks the cluster. wg-quick@wg0 is enabled now (a past gap was fixed), but after any reboot re-check the route pins: ip route get 10.10.0.2 must say dev wg0. The Pi's kubelet symptom is node "rpi" not found, while cloudflared and Forgejo look perfectly healthy — see references/pi-reboot-recovery.md in the home-k8s skill. Work outside-in: LAN SSH → power-event check → wg-quick@wg0 → route pins → per-hop curls.
  2. DiskPressure on siriussec takes the whole ingress stack with it. Forgejo 503 from Cloudflare with no healthy upstream is almost always node DiskPressure (dind growth, §8), not the tunnel. Check curl http://127.0.0.1:20241/ready on rpi first; readyConnections ≥ 1 means the tunnel is fine.
  3. 10.10.0.0/24 claimed by two interfaces on the Pi (§3.4). Any edit to wg-remote AllowedIPs or a peer change can reintroduce it. Re-check both ip route get 10.10.0.2 and ip route get 10.10.0.5 after touching WireGuard.
  4. The T480 must boot linux-lts. Running 6.18.50-2-lts now; 7.2.3-arch1-3 is installed on disk and Cilium's BPF probe fails on it. GRUB default must stay on LTS, and never reboot onto a kernel whose /lib/modules/$(uname -r) was already removed by a pacman upgrade.

9.2 Smaller, still real

  • cilium-operator election window was widened (--leader-election-lease-duration=60s, renew-deadline=45s, resource-lock-timeout=20s) because etcd wal_fsync stalls on the shared NVMe make it exit. The operator restarted 25 min before this reading; the static-pod controller-manager and scheduler show ~227–230 restarts. That is an etcd I/O problem, not a Cilium one.
  • Pi ufw allows 22/tcp from anywhere, plus 10.10.0.0/24, 10.244.0.0/16 and 51820/udp; the WG forward rules between wg0 and wg-remote are in place. The Linode hub also needs its own FORWARD accepts or spoke traffic dies past the hub.
  • Two stale WireGuard peers exist: mesh 10.10.0.4 (6 days, Tailscale endpoint) and Linode-hub 10.20.0.4 (no handshake). Harmless but misleading in wg show.
  • The Pi runs Tailscale (tailscale0, 100.71.235.119) alongside WireGuard. Do not plan recovery around Tailscale-only paths; treat WireGuard/LAN as the primary.
  • Pi still runs three leftover Docker services outside Kubernetes: registry:2 on 127.0.0.1:5000, and two containers of site images (handyman-site on :8082, sirius-growth-site). The in-cluster GitOps deployments supersede the site containers; the local registry is still what deploy-handyman.yml/deploy-site.yml push to.

9.3 Drift found: this document vs the home-k8s skill

Skill says Reality (live 2026-10-26)
Cilium 1.18.13 Cilium v1.20.1, Envoy v1.37.5
linode worker retired / "not down, gone" (task spec) linode is back as a Ready worker, joined ~60 min before this reading, pod CIDR 10.244.2.0/24
linode tainted dedicated=network:PreferNoSchedule label present, no taint (same for rpi)
Public origin 10.10.0.5:8080 in the older paragraph origin is 10.10.0.2:8080 (the skill's newer paragraph is right; the older one is stale)
Gateway listener on 10.10.0.5 / one Gateway Gateway public advertises three addresses (.1/.2/.5) but only .2:8080 completes requests; a second Gateway internal:8081 exists
Garage: systemd unit, loopback only Docker container dxflrs/garage:v1.1.0; loopback on 3900-3902 plus 10.10.0.1:3900 (S3 is reachable from pods)
wgportal is the peer manager on the Pi wgportal is not running — dir + compose remain, no container, no unit; peers are edited manually
"Only wgportal compose should stay on the Pi" Pi also runs registry, handyman-site, sirius-growth-site containers
PHS/piedmont pods pinned to linode pinned to siriussec (nodeSelector: kubernetes.io/hostname)
Two Actions runners Three — forgejo-runner-deploy-arm64 (deploy-arm64 only) added
— metrics-server absent, so kubectl top does not work
— paaas.siriusdevops.com is in the tunnel with no HTTPRoute → 404

10. Verification log

All times 2026-10-26 UTC. kubeconfig on the Legion admin laptop → https://10.10.0.2:6443; SSH [email protected] (rpi) and [email protected] (siriussec, capital L), key ~/.ssh/lancelot_priv; Linode only via the Pi hop (ssh -i ~/.ssh/linode_admin [email protected]).

# Command Key result
1 kubectl get nodes -o wide 3 nodes, all Ready, v1.36.4, linode age 60 m
2 kubectl get nodes -o json (labels/taints/conditions) no taints anywhere; gateway=true on rpi + siriussec; dedicated=network on rpi + linode
3 kubectl get pods -A -o wide 37 rows = 31 Running + 6 Completed
4 kubectl get svc,ingress,httproute,gateway -A no Ingress objects; 4 HTTPRoutes; Gateways public (8080) and internal (8081)
5 kubectl get pvc,pv -A, kubectl get sc 4 Bound PVs, all local-path, all on siriussec
6 kubectl get cluster -A forgejo/pg and sirius-growth/portal, both ClusterIsReady, 1 instance each
7 kubectl -n flux-system get gitrepository,kustomization -o wide all Ready, revision master@sha1:bd5057c
8 kubectl -n kube-system get cm cilium-config -o jsonpath=… routing-mode: native, ipv4-native-routing-cidr 10.244.0.0/16, kube-proxy-replacement true, bpf-lb-external-clusterip true
9 kubectl -n kube-system get ds,deploy / image tags cilium v1.20.1, envoy v1.37.5
10 kubectl -n kube-system exec ds/cilium -- cilium-dbg status --brief OK
11 kubectl top nodes error: Metrics API not available → no metrics-server
12 kubectl -n forgejo get deploy -o json 3 runner Deployments + nodeSelectors; pod/container securityContext as documented
13 kubectl -n forgejo get cm forgejo-runner-config -o jsonpath three TOMLs: amd64.toml, arm64.toml, deploy-arm64.toml, all capacity: 1
14 kubectl -n forgejo exec deploy/forgejo -- forgejo --version 16.0.5
15 rpi: sudo wg show wg0 3 peers (handshakes 1 min / 48 min / 6 d); wg-remote 1 peer, 35 s
16 rpi: sudo wg show wg0 dump | wc -l 4
17 rpi: systemctl is-enabled/is-active wg-quick@{wg0,wg-remote} cloudflared enabled/enabled/enabled; active state: wg0 inactive, wg-remote active
18 rpi: ip route get 10.10.0.2 / 10.10.0.5 / 10.10.0.3 dev wg0 / dev wg-remote / dev wg0 — pins correct
19 rpi: curl -s http://127.0.0.1:20241/ready {"status":200,"readyConnections":4}
20 rpi: curl -s http://127.0.0.1:20241/config 8 hostnames + catch-all, all → http://10.10.0.2:8080
21 rpi: curl -H 'Host: <h>' http://10.10.0.2:8080/ ×5 200/31813 / 200/15008 / 200/72640 / 200/7067 / 404 paaas
22 rpi: same against 10.10.0.1:8080 and 10.10.0.5:8080 rpi → 503 in 5.000 s; linode → no listener (000)
23 Cloudflare API GET /accounts/…/cfd_tunnel sirius home healthy, 4 connections; piedmontomesvc tunnel inactive, 0
24 rpi: docker ps -a garage, registry, handyman-site, sirius-growth-site up; no wg-portal; 5 exited onionwire-ci-* containers
25 rpi: docker exec garage /garage status and bucket list node d053db4dfc97bf78 healthy, 3 buckets
26 rpi: ss -ltnp | grep 390 127.0.0.1:3900-3902 and 10.10.0.1:3900
27 rpi: df -h, free -h, vcgencmd get_throttled 58% used; 7.9 GiB RAM; throttled=0x0
28 siriussec: wg show peer = Pi hub, AllowedIPs 10.10.0.0/24, 10.244.0.0/16, handshake 1 min
29 siriussec: sudo nft list table inet k8s-api lo / wg0 / 10.244.0.0/16 accept, else drop
30 siriussec: sudo du -sh /opt/local-path-provisioner/pvc-* 224 M / 643 M / 12 G / 18 G (dind)
31 siriussec: uname -r, pacman -Q linux-lts 6.18.50-2-lts; 7.2.3-arch1-3 also installed
32 linode (via Pi hop): hostname, ip -br addr, wg show wg0 dummy-k8s 10.10.0.5/32, wg0 10.20.0.1/24, 4 peers, uptime 3 d 17 h

Not verified, deliberately: Cloudflare DNS records, Forgejo's app.ini, any secret material, and the SG-VPS/phone spoke routing beyond what the Linode's wg show reports.