K8S 安装 NFS CSI 驱动
Github仓库: https://github.com/kubernetes-csi/csi-driver-nfs/tree/master
安装文档: https://github.com/kubernetes-csi/csi-driver-nfs/tree/master/charts
挂载参数: https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/docs/driver-parameters.md
安装
helm repo add csi-driver-nfs https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
helm install csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system --version v4.10.0
创建storageclass
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: nfs-csi
provisioner: nfs.csi.k8s.io
reclaimPolicy: Delete
parameters:
server: 7c9354b8ac-cpb39.ap-southeast-1.nas.aliyuncs.com
share: /
mountOptions:
- vers=3,nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport
文章目录
安装
创建storageclass
关闭
共有 0 条评论