From 611bc5a914e079032be720d8d8f230e71fd470b3 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 5 Sep 2025 07:35:47 +0530 Subject: [PATCH] use smb instead of nfs for immich-pictures-pv --- cluster/apps/immich/immich-pvc.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/cluster/apps/immich/immich-pvc.yml b/cluster/apps/immich/immich-pvc.yml index c001903..b8e53df 100644 --- a/cluster/apps/immich/immich-pvc.yml +++ b/cluster/apps/immich/immich-pvc.yml @@ -17,21 +17,28 @@ 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: 20Gi - volumeMode: Filesystem + storage: 100Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain + storageClassName: immich-pictures-pv mountOptions: - - hard - - nfsvers=4.1 - nfs: - path: /pictures - server: 10.0.0.123 + - 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 --- apiVersion: v1 @@ -46,4 +53,4 @@ spec: volumeName: immich-pictures-pv resources: requests: - storage: 20Gi + storage: 100Gi