csi-nfs-storageclass-aliyun

CSI-NFS-StorageClass 阿里云

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: csi-nfs-storageclass-aliyun
provisioner: nfs.csi.k8s.io
parameters:
  server: xxxxxxxxxxxxxxxxxx.cn-hangzhou.nas.aliyuncs.com
  share: /
  # csi.storage.k8s.io/provisioner-secret is only needed for providing mountOptions in DeleteVolume
  # csi.storage.k8s.io/provisioner-secret-name: "mount-options"
  # csi.storage.k8s.io/provisioner-secret-namespace: "default"
reclaimPolicy: Delete
volumeBindingMode: Immediate
mountOptions:
  - vers=4
  - minorversion=0
  - rsize=1048576
  - wsize=1048576
  - hard
  - timeo=600
  - retrans=2
  - noresvport