From 7bb421c8f3262dafbce437cc4810ed72da9cadf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=BB=91=20=28AI=20Bot=29?= Date: Fri, 13 Feb 2026 21:10:12 +1100 Subject: [PATCH] fix: add PVC for ollama data persistence --- ai/ollama.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ai/ollama.yaml b/ai/ollama.yaml index d228417..0b7bbfc 100644 --- a/ai/ollama.yaml +++ b/ai/ollama.yaml @@ -1,3 +1,16 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: ollama-pvc + namespace: ai +spec: + accessModes: + - ReadWriteOnce + storageClassName: local-path + resources: + requests: + storage: 20Gi +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -33,7 +46,8 @@ spec: mountPath: /root/.ollama volumes: - name: ollama-data - emptyDir: {} + persistentVolumeClaim: + claimName: ollama-pvc --- apiVersion: v1 kind: Service