Add firewall and home LAN access docs, ComfyUI image generation, and backup plan

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.
This commit is contained in:
2026-12-01 12:36:14 +02:00
parent 975c059ecf
commit 36fbaf171a
13 changed files with 618 additions and 8 deletions
+30 -1
View File
@@ -18,11 +18,12 @@ inspecting `kubectl get/describe/logs`.
| Directory | Purpose |
|-------------------|----------------------------------------------------------------------|
| `Cilium/` | Cilium networking: `LoadBalancerIPPool`, `L2AnnouncementPolicy`, ingress example |
| `Cluster_admin/` | Operational notes (node reboot/update sequences, `kubectl cp` example) — not manifests applied to cluster |
| `Cluster_admin/` | Operational notes (node reboot/update sequences, firewall/egress, `kubectl cp` example) — not manifests applied to cluster |
| `Docker/PostgreSQL/` | Custom PostgreSQL image build (Dockerfile + build script) |
| `DockerRegistry/` | Private Docker registry Deployment + Service + PVC, and a registry UI subdirectory |
| `Email/` | Mailu mail server (Helm) + namespace + Cilium LB pool manifests |
| `Gitea/` | Gitea Deployment/Service/Ingress/Namespace/PVC/DB-secret |
| `HomeAccess/` | DaemonSet that routes `192.168.8.0/24` (home LAN) through the master's WireGuard + README |
| `Immich/` | Immich server + machine-learning + redis Deployments/Services, config + secret |
| `Monitoring/` | kube-prometheus-stack Helm values + hand-managed Grafana manifests |
| `PostgreSQL/` | PostgreSQL manifests (only `hetzner/` subdir currently present) |
@@ -57,6 +58,34 @@ inspecting `kubectl get/describe/logs`.
the public image name `rg.mariushome.lt/custom-postgres` instead.
- LB pool ranges are RFC1918 and announced via L2 on worker nodes.
### Firewall / egress
Public IPs are kept on all nodes (Option A). Hetzner Cloud Firewalls are
applied to every node:
- `allow-all-internal` — inbound from `10.0.0.0/8`
- `allow-all-home` — inbound from `192.168.8.0/24`, `192.168.5.0/24`
- `Home-ip` — inbound from `78.58.8.250/32` (home WAN)
There are **no outbound rules**, so Hetzner allows all outbound. Inbound `NEW`
from the internet is dropped; IPv6 has no inbound rules and is egress-only.
Nodes pull images/packages directly over Hetzner, and the `slow` SMB Storage Box
stays on direct IPv6.
**Gotcha:** adding a single outbound rule flips Hetzner outbound to
deny-by-default. Add the complete allowlist in one call, or leave outbound open.
See `Cluster_admin/firewall.md` for the rules, API commands and validation.
The master's WireGuard (`wg0`, `192.168.5.0/24`) is the only path between the
cluster and the home LAN; it is **not** an internet path. It carries both
directions: home → cluster (kubectl, LB IPs) and cluster → home (`HomeAccess/`:
each worker gets a point-to-point GRE tunnel to the master because Hetzner's
private network is routed and drops non-private sources, and the master
masquerades the traffic to `192.168.5.3`). The private-only-worker design
remains deferred: the home router does not forward the WG subnet, so home
devices reach workers only through the master. Mailu is not deployed and its
SMTP/IMAP ports are not open to the internet.
## Storage
Three `StorageClass`es exist: