From bc639584208b13e29a5f682f3765b59213701187 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 26 Jan 2025 01:02:27 -0600 Subject: [PATCH] add nfs mount --- .../templates/persistent-volume-claim.yaml | 19 +++++++++++++++++++ clusters/cl01tl/platform/ollama/values.yaml | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 clusters/cl01tl/platform/ollama/templates/persistent-volume-claim.yaml diff --git a/clusters/cl01tl/platform/ollama/templates/persistent-volume-claim.yaml b/clusters/cl01tl/platform/ollama/templates/persistent-volume-claim.yaml new file mode 100644 index 000000000..68394e94e --- /dev/null +++ b/clusters/cl01tl/platform/ollama/templates/persistent-volume-claim.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: stable-diffusion-nfs-storage-models + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: stable-diffusion-nfs-storage-models + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: storage + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + volumeMode: Filesystem + storageClassName: nfs-client + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi diff --git a/clusters/cl01tl/platform/ollama/values.yaml b/clusters/cl01tl/platform/ollama/values.yaml index e86a91d62..0955d19dc 100644 --- a/clusters/cl01tl/platform/ollama/values.yaml +++ b/clusters/cl01tl/platform/ollama/values.yaml @@ -189,6 +189,15 @@ ollama: main: - path: /workspace readOnly: false + models: + type: persistentVolumeClaim + existingClaim: stable-diffusion-nfs-storage-models + advancedMounts: + main: + qbittorrent: + main: + - path: /opt/stable-diffusion-webui/models/Stable-diffusion + readOnly: false web-data: storageClass: ceph-block accessMode: ReadWriteOnce