mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +00:00
27 lines
679 B
YAML
27 lines
679 B
YAML
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
annotations:
|
||
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||
|
name: pv-plex-smb
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 100Gi
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
persistentVolumeReclaimPolicy: Retain
|
||
|
storageClassName: smb
|
||
|
mountOptions:
|
||
|
- dir_mode=0777
|
||
|
- file_mode=0777
|
||
|
csi:
|
||
|
driver: smb.csi.k8s.io
|
||
|
readOnly: false
|
||
|
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
|
||
|
# make sure this value is unique for every share in the cluster
|
||
|
volumeHandle: plex
|
||
|
volumeAttributes:
|
||
|
source: "//192.168.x.x/your-nas"
|
||
|
nodeStageSecretRef:
|
||
|
name: smbcreds
|
||
|
namespace: default
|