Document the Hetzner Cloud Firewall posture (inbound from private/home only, outbound allow-all, egress-only IPv6, public IPs on workers) in a new `Cluster_admin/firewall.md` and reference it from `AGENTS.md`, `Environment.md`, and `README.md`. Update the Mailu README to note that SMTP/IMAP ports are not currently exposed. Add `HomeAccess/` with a privileged DaemonSet and README that give cluster nodes a route to `192.168.8.0/24` via point-to-point GRE tunnels to the master and its WireGuard tunnel. Wire Open WebUI to ComfyUI on pop-os through a new `openwebui-imagegen` ConfigMap consumed via `envFrom`, with migration notes covering the PersistentConfig DB override. Bump kube-prometheus-stack to 88.6.1 with an 8GB `retentionSize` cap, grow the postgres PVC to 50Gi, and add a PostgreSQL backup plan for pg_dumpall/rclone streaming to a Hetzner Storage Box.
Home access from the cluster
Lets pods and nodes reach the home LAN at 192.168.8.0/24 (the pop-os
workstation lives there) through the master's existing WireGuard tunnel.
pod on worker --Cilium--> worker node
| SNAT to 169.254.8.X, GRE (outer 10.1.0.X -> 10.1.0.3)
v
master 10.1.0.3
| forward + MASQUERADE out wg0 (src 192.168.5.3)
v
home router --> 192.168.8.28
Two things make this less obvious than it looks:
- Hetzner's private network is routed, not L2. Each node has a
/32(10.1.0.x/32) with a gateway at10.1.0.1; you cannot ARP a peer and use it as a next hop. - It drops non-private sources. A packet forwarded by the master with
source 192.168.8.xnever reaches the worker's NIC, so the return path has to be tunnelled as well.
Hence the point-to-point GRE tunnels (169.254.8.0/24) between each worker and
the master. The inner packet keeps its real source end to end; only the outer
header uses the private node IPs. The master then masquerades 169.254.8.0/24
to 192.168.5.3 on wg0, the address the PC already answers.
| Worker private IP | Tunnel pair |
|---|---|
10.1.0.2 |
169.254.8.0/31 (worker .0, master .1) |
10.1.0.4 |
169.254.8.4/31 (worker .4, master .5) |
The worker list is hardcoded in the DaemonSet (WORKERS). Update it when a node
is added, removed or renumbered.
Prerequisites (host-side, not managed here)
-
On
master-4gb-hel1-2, the/etc/wireguard/wg0.confpeer for the home router must list the home LAN:AllowedIPs = 192.168.5.0/24, 192.168.8.0/24Reload with
wg syncconf wg0 <(wg-quick strip wg0)and add the route ifip route get 192.168.8.28does not saydev wg0(wg syncconfdoes not install routes):ip route replace 192.168.8.0/24 dev wg0 ip route get 192.168.8.28 # expect: dev wg0 src 192.168.5.3 -
The home router routes
192.168.8.0/24into the WireGuard tunnel and allows WireGuard ↔ LAN forwarding. -
Hetzner Cloud Firewall
allow-all-homeincludes192.168.8.0/24.
Deploy
kubectl apply -f HomeAccess/home_lan_router_daemonset.yaml
kubectl -n kube-system rollout status ds/home-lan-router
The DaemonSet is privileged with hostNetwork: true because it programs the
node's interfaces, routes and iptables. A 60 s reconcile loop re-applies
everything, so reboots, drains, Cilium upgrades and iptables flushes heal
themselves.
Verify
# master: tunnels, NAT
kubectl -n kube-system exec ds/home-lan-router -- ip -br addr show | grep home-gw
kubectl -n kube-system exec ds/home-lan-router -- iptables -t nat -S POSTROUTING | grep 192.168.8
# worker: tunnel + route
kubectl -n kube-system exec <worker-pod> -- ip route show 192.168.8.0/24
# end-to-end (ICMP is the quickest; use any listening TCP port on the PC)
kubectl -n kube-system exec <worker-pod> -- ping -c2 192.168.8.28
kubectl -n kube-system exec <worker-pod> -- nc -vz -w2 192.168.8.28 22
kubectl -n gitea exec deploy/gitea -- curl -s -o /dev/null -w '%{http_code}\n' -m 5 http://192.168.8.28:<port-on-the-pc>/
<port-on-the-pc> needs an HTTP listener; when nothing is running on pop-os,
the ICMP and nc checks are enough.
Notes
- Only
192.168.8.0/24becomes reachable from pods, not the rest of the home network. pop-osgets its address over DHCP. The route is subnet-wide, so a lease change does not break routing; add a DHCP reservation on the UniFi gateway if anything references the address.- The worker
rp_filtermust be permissive (0) on the GRE interfaces and the master'sall.rp_filtermust be0; the DaemonSet sets both. This is what lets the forwarded, un-NAT'd reply enter the stack. - TCP MSS is clamped to
1356(1396GRE inner MTU − 40) on the workers, so payloads do not black-hole on PMTUD. - The host and the containers both use the
nf_tablesiptables backend, so rules are visible and editable from either side.
Rollback
kubectl delete -f HomeAccess/home_lan_router_daemonset.yaml
Host state (interfaces, routes, iptables rules) survives pod deletion; remove it manually or reboot the nodes:
# workers
ip tunnel del home-gw
iptables -t nat -D CILIUM_POST_nat -d 192.168.8.0/24 -j RETURN
iptables -t nat -D POSTROUTING -s 10.0.0.0/8 -d 192.168.8.0/24 -j SNAT --to-source 169.254.8.X
iptables -D FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
# master
ip tunnel del home-gw-0 home-gw-4
iptables -t nat -D POSTROUTING -s 169.254.8.0/24 -d 192.168.8.0/24 -o wg0 -j MASQUERADE
iptables -t nat -D POSTROUTING -s 10.0.0.0/8 -d 192.168.8.0/24 -o wg0 -j MASQUERADE
iptables -D FORWARD -i 'home-gw+' -o wg0 -j ACCEPT
iptables -D FORWARD -i wg0 -o 'home-gw+' -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT