233/manifests/storageclasses/nfs]# kubectl describe pvc test-claim
報錯提示:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ExternalProvisioning 15s (x7 over 86s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "oldboyedu/linux" or manually created by system administrator
原因:
nfs報錯,原因是高版本kubelet需要加上一個引數
修改/etc/kubernetes/manifests/kube-apiserver.yaml
在 - --tls-private-key-file=/etc/kubernetes/pki/apiserver.key下面新增如下:
- --feature-gates=RemoveSelfLink=false
然後kubectl apply -f /etc/kubernetes/manifests/kube-apiserver.yaml 即可以解決!