From f51d1c16ac6e425eb1f8672107deeb02a7147a50 Mon Sep 17 00:00:00 2001 From: Hermes Agent service account Date: Tue, 1 Sep 2026 13:28:21 -0500 Subject: [PATCH] Fix Open WebUI storage and model detection - Change emptyDir to persistent volume (open-webui-data PVC) Fixes data loss on pod restart (admin user disappears) - Add ENABLE_OLLAMA_API=false Disable broken Ollama endpoint probing vLLM uses OpenAI-compatible API, not Ollama - Create pvc.yaml for persistent data storage 10Gi NFS-backed storage via nfs-emporium StorageClass --- cluster/applications/open-webui/deployment.yaml | 7 +++++-- cluster/applications/open-webui/pvc.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 cluster/applications/open-webui/pvc.yaml diff --git a/cluster/applications/open-webui/deployment.yaml b/cluster/applications/open-webui/deployment.yaml index 2978a5a..0b4542d 100644 --- a/cluster/applications/open-webui/deployment.yaml +++ b/cluster/applications/open-webui/deployment.yaml @@ -59,6 +59,9 @@ spec: value: "true" - name: ENABLE_MODEL_FILTER value: "false" + # Disable Ollama model detection (we use vLLM/OpenAI-compatible only) + - name: ENABLE_OLLAMA_API + value: "false" # Storage - name: DATA_DIR value: "/app/backend/data" @@ -82,5 +85,5 @@ spec: mountPath: /app/backend/data volumes: - name: data - emptyDir: - sizeLimit: 1Gi + persistentVolumeClaim: + claimName: open-webui-data diff --git a/cluster/applications/open-webui/pvc.yaml b/cluster/applications/open-webui/pvc.yaml new file mode 100644 index 0000000..f8af8f5 --- /dev/null +++ b/cluster/applications/open-webui/pvc.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: open-webui-data + namespace: open-webui + labels: + app.kubernetes.io/name: open-webui + app.kubernetes.io/component: data +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi