30 lines
1016 B
YAML
30 lines
1016 B
YAML
# ------------------------------------------------------------------------------
|
|
# StorageClass: nfs-emporium
|
|
# Provisioner: nfs.csi.k8s.io (csi-driver-nfs)
|
|
# Server: emporium (Synology DS1621+) — 10.1.71.9
|
|
# Export: /volume1/fastpass
|
|
#
|
|
# Dynamic provisioning: each PVC gets a subdirectory under /volume1/fastpass
|
|
# archiveOnDelete=false means the directory is deleted when the PVC is deleted.
|
|
# Set to "true" if you want data retained after PVC deletion.
|
|
# ------------------------------------------------------------------------------
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: nfs-emporium
|
|
annotations:
|
|
storageclass.kubernetes.io/is-default-class: "true"
|
|
provisioner: nfs.csi.k8s.io
|
|
parameters:
|
|
server: 10.1.71.9
|
|
share: /volume1/fastpass
|
|
# Create a unique subdirectory per PVC (dynamic provisioning)
|
|
subDir: ${pvc.metadata.namespace}/${pvc.metadata.name}
|
|
reclaimPolicy: Delete
|
|
volumeBindingMode: Immediate
|
|
mountOptions:
|
|
- nfsvers=4.1
|
|
- hard
|
|
- timeo=600
|
|
- retrans=3
|