From a979145d9ef1c13f9d5c026c849dbe8d5598834c Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 24 Jun 2024 09:46:24 +1000 Subject: [PATCH] fix config volume --- kubernetes/apps/qbittorrent/app/volume.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/kubernetes/apps/qbittorrent/app/volume.yaml b/kubernetes/apps/qbittorrent/app/volume.yaml index fbb7be4..76dca47 100644 --- a/kubernetes/apps/qbittorrent/app/volume.yaml +++ b/kubernetes/apps/qbittorrent/app/volume.yaml @@ -6,6 +6,7 @@ metadata: labels: type: local spec: + storageClassName: local-path volumeMode: Filesystem capacity: storage: 250Mi @@ -13,4 +14,12 @@ spec: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain local: - path: "/mnt/nfs/AppData/qbittorrent/config" \ No newline at end of file + path: "/mnt/nfs/AppData/qbittorrent/config" + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - rpi5-cluster-node-3 \ No newline at end of file