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
+4
View File
@@ -21,6 +21,10 @@ spec:
- name: open-webui
image: ghcr.io/open-webui/open-webui:main
imagePullPolicy: Always
envFrom:
# Image generation (ComfyUI on pop-os). See openwebui_imagegen_config.yaml.
- configMapRef:
name: openwebui-imagegen
env:
- name: OLLAMA_BASE_URL
value: "http://ollama.ollama.svc.cluster.local:11434"
+22
View File
@@ -0,0 +1,22 @@
# Image generation config for Open WebUI (Kubernetes).
# Points Open WebUI at ComfyUI running on pop-os (GPU), reachable from the
# cluster via the home-gw / WireGuard route to 192.168.8.0/24.
# The workflow below is the Qwen-Image 2512 + Lightning 4-step text-to-image
# graph (matches ~/comfy/workflows/openwebui_qwen_t2i.json on pop-os).
apiVersion: v1
kind: ConfigMap
metadata:
name: openwebui-imagegen
namespace: ollama
labels:
app: open-webui
data:
ENABLE_IMAGE_GENERATION: "true"
IMAGE_GENERATION_ENGINE: "comfyui"
IMAGE_GENERATION_MODEL: "qwen-image"
IMAGE_SIZE: "1024x1024"
IMAGE_STEPS: "4"
COMFYUI_BASE_URL: "http://192.168.8.28:8188"
COMFYUI_API_KEY: ""
COMFYUI_WORKFLOW: '{"1":{"class_type":"UnetLoaderGGUF","inputs":{"unet_name":"qwen-image-Q4_K_M.gguf"}},"2":{"class_type":"CLIPLoader","inputs":{"clip_name":"qwen_2.5_vl_7b_fp8_scaled.safetensors","type":"qwen_image","device":"default"}},"3":{"class_type":"VAELoader","inputs":{"vae_name":"qwen_image_vae.safetensors"}},"4":{"class_type":"LoraLoaderModelOnly","inputs":{"model":["1",0],"lora_name":"Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors","strength_model":1.0}},"5":{"class_type":"ModelSamplingAuraFlow","inputs":{"model":["4",0],"shift":3.1}},"6":{"class_type":"CLIPTextEncode","inputs":{"clip":["2",0],"text":""}},"7":{"class_type":"CLIPTextEncode","inputs":{"clip":["2",0],"text":""}},"8":{"class_type":"EmptySD3LatentImage","inputs":{"width":1024,"height":1024,"batch_size":1}},"9":{"class_type":"KSampler","inputs":{"model":["5",0],"positive":["6",0],"negative":["7",0],"latent_image":["8",0],"seed":42,"steps":4,"cfg":1.0,"sampler_name":"euler","scheduler":"simple","denoise":1.0}},"10":{"class_type":"VAEDecode","inputs":{"samples":["9",0],"vae":["3",0]}},"11":{"class_type":"SaveImage","inputs":{"images":["10",0],"filename_prefix":"openwebui_qwen"}}}'
COMFYUI_WORKFLOW_NODES: '[{"type":"prompt","node_ids":["6"],"key":"text"},{"type":"negative_prompt","node_ids":["7"],"key":"text"},{"type":"width","node_ids":["8"],"key":"width"},{"type":"height","node_ids":["8"],"key":"height"},{"type":"n","node_ids":["8"],"key":"batch_size"},{"type":"steps","node_ids":["9"],"key":"steps"},{"type":"seed","node_ids":["9"],"key":"seed"}]'