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
This commit is contained in:
@@ -59,6 +59,9 @@ spec:
|
|||||||
value: "true"
|
value: "true"
|
||||||
- name: ENABLE_MODEL_FILTER
|
- name: ENABLE_MODEL_FILTER
|
||||||
value: "false"
|
value: "false"
|
||||||
|
# Disable Ollama model detection (we use vLLM/OpenAI-compatible only)
|
||||||
|
- name: ENABLE_OLLAMA_API
|
||||||
|
value: "false"
|
||||||
# Storage
|
# Storage
|
||||||
- name: DATA_DIR
|
- name: DATA_DIR
|
||||||
value: "/app/backend/data"
|
value: "/app/backend/data"
|
||||||
@@ -82,5 +85,5 @@ spec:
|
|||||||
mountPath: /app/backend/data
|
mountPath: /app/backend/data
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir:
|
persistentVolumeClaim:
|
||||||
sizeLimit: 1Gi
|
claimName: open-webui-data
|
||||||
|
|||||||
14
cluster/applications/open-webui/pvc.yaml
Normal file
14
cluster/applications/open-webui/pvc.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user