-
默认
nfs csi
是开启状态 -
关闭
nfs csi
# 取消 `enable_nfs_csi: "yes" 的注释, 并设置为 "no" 可关闭 nfs ####################### # StorageClass Options ####################### enable_nfs_csi: "no"
-
部署完验证
[root@pixiu]# kubectl get pod -n kube-system NAME READY STATUS RESTARTS AGE csi-nfs-controller-6b468b7554-dvnfc 3/3 Running 0 9d csi-nfs-node-vfm8m 3/3 Running 0 9d [root@pixiu]# kubectl get storageclass NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE managed-nfs-storage nfs.csi.k8s.io Delete Immediate false 9d [root@pixiu]# kubectl get csidriver NAME ATTACHREQUIRED PODINFOONMOUNT STORAGECAPACITY TOKENREQUESTS REQUIRESREPUBLISH MODES AGE nfs.csi.k8s.io false false false <unset> false Persistent 9d