36fbaf171a
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.
108 lines
3.1 KiB
YAML
108 lines
3.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: open-webui
|
|
namespace: ollama
|
|
labels:
|
|
app: open-webui
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: open-webui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: open-webui
|
|
spec:
|
|
containers:
|
|
- 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"
|
|
- name: WEBUI_URL
|
|
value: "http://chat.mariushome.lt"
|
|
- name: PORT
|
|
value: "8080"
|
|
- name: ENABLE_SIGNUP
|
|
value: "false"
|
|
- name: ENABLE_LOGIN_FORM
|
|
value: "true"
|
|
- name: ENABLE_RAG
|
|
value: "true"
|
|
- name: RAG_EMBEDDING_ENGINE
|
|
value: "ollama"
|
|
- name: RAG_EMBEDDING_MODEL
|
|
value: "nomic-embed-text"
|
|
- name: VECTOR_DB
|
|
value: "pgvector"
|
|
- name: ENABLE_PERSISTENT_CONFIG
|
|
value: "true"
|
|
- name: WEBUI_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: openwebui-secret
|
|
key: WEBUI_SECRET_KEY
|
|
- name: WEBUI_ADMIN_EMAIL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: openwebui-secret
|
|
key: WEBUI_ADMIN_EMAIL
|
|
- name: WEBUI_ADMIN_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: openwebui-secret
|
|
key: WEBUI_ADMIN_PASSWORD
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: openwebui-secret
|
|
key: DATABASE_URL
|
|
- name: PGVECTOR_DB_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: openwebui-secret
|
|
key: PGVECTOR_DB_URL
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: "250m"
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: "2"
|
|
memory: 4Gi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 5
|
|
# Fresh PostgreSQL install: uploads go to emptyDir. Add a PVC later if needed.
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/backend/data
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|