feat: added kubernetes persistent volume claim for webui

This commit is contained in:
braveokafor 2024-02-16 19:36:38 +01:00
parent 4c3edd0375
commit 0340967930
2 changed files with 20 additions and 1 deletions

View file

@ -26,3 +26,10 @@ spec:
- name: OLLAMA_API_BASE_URL - name: OLLAMA_API_BASE_URL
value: "http://ollama-service.ollama-namespace.svc.cluster.local:11434/api" value: "http://ollama-service.ollama-namespace.svc.cluster.local:11434/api"
tty: true tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: ollama-webui-pvc

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: ollama-webui
name: ollama-webui-pvc
namespace: ollama-namespace
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi