报错如下:waiting for a volume to be created, either by external provisioner “gxf-nfs-storage” or manually created by system administrator
解决如下:
修改/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
解决如下:
[root@master1 manifests]# kubectl get pv,pvc
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
persistentvolume/pvc-dec6fa3c-d502-4326-a020-ff534f0a212a 100Mi RWX Retain Bound default/test-claim managed-nfs-storage 10m
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/test-claim Bound pvc-dec6fa3c-d502-4326-a020-ff534f0a212a 100Mi RWX managed-nfs-storage 17m