-
默认
nfs
是开启状态 -
关闭
nfs provisioner
# 取消 `enable_nfs: "yes" 的注释, 并设置为 "no" 可关闭 nfs ####################### # StorageClass Options ####################### enable_nfs: "no"
-
nfs
会随着kubernetes
集群一同安装,使用nfs
前需在kube-apiserver
的启动命令中添加--feature-gates=RemoveSelfLink=false
# 编辑 /etc/kubernetes/manifests/kube-apiserver.yaml 添加 - --feature-gates=RemoveSelfLink=false
-
等待
kube-apiserver
启动,完成配置修改# 命令行正常回显 kubectl get node
-
部署完验证
[root@pixiu]# kubectl get pod -n storage-class NAME READY STATUS RESTARTS AGE nfs-client-provisioner-d6ffd8998-6jnkg 1/1 Running 3 145d [root@pixiu]# kubectl get storageclass NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE managed-nfs-storage fuseim.pri/ifs Delete Immediate false 145d