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
+34
View File
@@ -42,6 +42,40 @@ All manifests are in `Ollama/`:
| `openwebui_deployment.yaml` | Open WebUI Deployment (PostgreSQL + pgvector) |
| `openwebui_service.yaml` | ClusterIP Service `open-webui:8080` |
| `openwebui_ingress.yaml` | Cilium dedicated LB ingress `chat.mariushome.lt` |
| `openwebui_imagegen_config.yaml` | ConfigMap `openwebui-imagegen` — enables ComfyUI image generation (see below) |
## Image generation (ComfyUI on pop-os)
Image generation runs on the `pop-os` workstation (RTX 2070, 8 GB) where ComfyUI
listens on `http://192.168.8.28:8188`. The cluster reaches it over the home-gw /
WireGuard route: every node has a route for `192.168.8.0/24` (master via `wg0`,
workers via `home-gw` with SNAT `10.0.0.0/8 → 169.254.8.x`), so pods can connect
directly. No tunnel or master proxy is needed.
- `openwebui_imagegen_config.yaml` (`openwebui-imagegen` ConfigMap) sets
`ENABLE_IMAGE_GENERATION=true`, `IMAGE_GENERATION_ENGINE=comfyui`,
`IMAGE_GENERATION_MODEL=qwen-image`, `IMAGE_SIZE`, `IMAGE_STEPS`, and the full
`COMFYUI_WORKFLOW` / `COMFYUI_WORKFLOW_NODES` (Qwen-Image 2512 + Lightning
4-step txt2img).
- `openwebui_deployment.yaml` consumes it via `envFrom.configMapRef`.
- **PersistentConfig caveat:** Open WebUI stores `image_generation.*` in the
`config` table of the `openwebui` Postgres DB, and **DB values override env**.
Setting the ConfigMap alone is not enough on an existing install — the DB rows
must match too. Either use Admin → Settings → Images, or update the DB:
```bash
POD=$(kubectl -n database get pods -l app=postgres-hetzner -o jsonpath='{.items[0].metadata.name}')
kubectl -n database exec $POD -- sh -c 'PGPASSWORD="$POSTGRES_PASSWORD" psql -U "${POSTGRES_USER:-admin}" -d openwebui' <<'SQL'
UPDATE config SET value='true'::json WHERE key='image_generation.enable';
UPDATE config SET value=to_json('comfyui'::text) WHERE key='image_generation.engine';
UPDATE config SET value=to_json('qwen-image'::text) WHERE key='image_generation.model';
UPDATE config SET value=to_json('http://192.168.8.28:8188'::text) WHERE key='image_generation.comfyui.base_url';
SQL
```
- Requirements on pop-os: ComfyUI bound to the LAN (`--listen ...,192.168.8.28`,
handled by `comfy-mode`), static IP `192.168.8.28`, and the machine powered on
(generation fails while it is offline/asleep).
## Storage