From 6dc21826b172791426254857a9b880e875d0c17f Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Thu, 31 Jul 2025 07:27:55 +0530 Subject: [PATCH] change from smb to nfs --- cluster/apps/immich/immich-pvc.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/cluster/apps/immich/immich-pvc.yml b/cluster/apps/immich/immich-pvc.yml index b87356b..d5a8db7 100644 --- a/cluster/apps/immich/immich-pvc.yml +++ b/cluster/apps/immich/immich-pvc.yml @@ -37,28 +37,21 @@ spec: apiVersion: v1 kind: PersistentVolume metadata: - annotations: - pv.kubernetes.io/provisioned-by: smb.csi.k8s.io name: immich-pictures-pv namespace: default spec: capacity: - storage: 100Gi + storage: 20Gi + volumeMode: Filesystem accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain - storageClassName: immich-pictures-pv mountOptions: - - dir_mode=0777 - - file_mode=0777 - csi: - driver: smb.csi.k8s.io - volumeHandle: 10.0.0.123#pictures#immich - volumeAttributes: - source: //10.0.0.123/pictures - nodeStageSecretRef: - name: smb-creds - namespace: default + - hard + - nfsvers=4.1 + nfs: + path: /k3s/pictures/ + server: 10.0.0.123 --- apiVersion: v1 @@ -67,9 +60,10 @@ metadata: name: immich-pictures-pvc namespace: default spec: - storageClassName: immich-pictures-pv accessModes: - ReadWriteMany + storageClassName: "" + volumeName: immich-pictures-pv resources: requests: - storage: 10Gi + storage: 20Gi