Files
Kubernetes/volume/smb_volume_example.yaml

33 lines
1.1 KiB
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
name: immich-lib
spec:
capacity:
storage: 500Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: slow
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1001
- gid=1001
- noperm
- mfsymlinks
- cache=loose # mount.cifs defaults to strict when omitted; loose gives best single-stream perf on the throttled storagebox. Valid values: strict|none|loose (not "weak")
- actimeo=30 # default is 1s; raising it cuts stat roundtrips when listing directories
- noserverino # required to prevent data corruption
csi:
driver: smb.csi.k8s.io
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
# make sure this value is unique for every share in the cluster
volumeHandle: u518679.your-storagebox.de/backup/kube_storage#immich-lib##
volumeAttributes:
source: //u518679.your-storagebox.de/backup/kube_storage
nodeStageSecretRef:
name: smbcreds
namespace: storage