[root@k8s-master-61 test]# kubectl get pods
NAME READY STATUS RESTARTS AGE
my-pod 0/1 Pending 0 22s
nfs-client-provisioner-ff594c7b9-kwdqq 1/1 Running 0 167m
Warning FailedScheduling 54s default-scheduler 0/4 nodes are available: 4 persistentvolumeclaim "my-pvc" not found.
[root@k8s-master-61 test]# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
my-pvc Pending managed-nfs-storage 63s
www-nfs-web-0 Pending managed-nfs-storage 2m15s
[root@k8s-master-61 test]# kubectl get pv
No resources found
pv 一直创建失败,这个是由于 v1.20.0中禁用了selfLink的原因
查找 kube-apiserver.conf 文件