diff --git a/cluster/apps/immich/immich-pv.yml b/cluster/apps/immich/immich-pv.yml deleted file mode 100644 index 7fd577e..0000000 --- a/cluster/apps/immich/immich-pv.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -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 - 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 - diff --git a/cluster/apps/immich/immich-pvc.yml b/cluster/apps/immich/immich-pvc.yml index 97aa91d..b9905e6 100644 --- a/cluster/apps/immich/immich-pvc.yml +++ b/cluster/apps/immich/immich-pvc.yml @@ -1,17 +1,65 @@ +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: immich-cache-pv + namespace: default +spec: + capacity: + storage: 10Gi + volumeMode: Filesystem + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + mountOptions: + - hard + - nfsvers=4.1 + nfs: + path: /k3s/volumes/immich/cache/ + server: 10.0.0.123 + --- apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: longhorn-immich-cache + name: immich-cache-pvc namespace: default spec: accessModes: - ReadWriteOnce - storageClassName: longhorn + storageClassName: "" + volumeName: immich-cache-pv resources: requests: storage: 10Gi +--- +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 + 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 + --- apiVersion: v1 kind: PersistentVolumeClaim @@ -25,4 +73,3 @@ spec: resources: requests: storage: 10Gi - diff --git a/cluster/apps/immich/immich.yml b/cluster/apps/immich/immich.yml index 287798d..223ebcc 100644 --- a/cluster/apps/immich/immich.yml +++ b/cluster/apps/immich/immich.yml @@ -82,5 +82,4 @@ spec: claimName: immich-pictures-pvc - name: model-cache persistentVolumeClaim: - claimName: longhorn-immich-cache - + claimName: immich-cache-pvc