K8S集群NFS支持Nas Options设置nfsvers4和nfsvers3不同
NFS原生支持options配置,格式如下: apiVersion: v1 kind: PersistentVolume metadata: name: pv0003 spec: capacity: storage: 5Gi accessModes: - ReadWriteMany mountOptions: - noresvport - nfsvers=4.0 nfs: path: /k8s1 server: 0cd8b4a576-***.cn-hangzhou.nas.aliyuncs.com NFS 3.0版本: apiVersion: v1 kind: PersistentVolume metadata: name: pv0002 spec: capacity: storage: 5Gi accessModes: - ReadWriteMany mountOptions: - noresvport - nolock - tcp - nfsvers=3 nfs: path: /k8s1 server: 0cd8b4a576-***.cn-hangzhou.nas.aliyuncs.com
请登录之后再进行评论