k8s-PVC创建异常
报错信息:NormalExternalProvisioning3m52s (x142 over 38m)persistentvolume-controllerwaiting for a volume to be created, either by external provisioner "nfs-storage" or manually created by system administra
·
报错信息:
Normal ExternalProvisioning 3m52s (x142 over 38m) persistentvolume-controller waiting for a volume to be created, either by external provisioner "nfs-storage" or manually created by system administrator
3.修改apiserver的配置
[root@k8s-matser01 nfs.rbac]# cat /etc/kubernetes/manifests/kube-apiserver.yaml
apiVersion: v1
- --tls-private-key-file=/etc/kubernetes/pki/apiserver.key
- --feature-gates=RemoveSelfLink=false # 添加这个配置
3.查看
重启apiserver
[root@master ks]# kubectl get pvc --all-namespaces
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
kubesphere-monitoring-system prometheus-k8s-db-prometheus-k8s-0 Bound pvc-ff6d66cc-9933-4c9d-b9e3-5784d22259c3 20Gi RWO managed-nfs-storage 56m
kubesphere-monitoring-system prometheus-k8s-db-prometheus-k8s-1 Bound pvc-d476406f-246f-437f-b278-8235d4e42fa0 20Gi RWO managed-nfs-storage 56m
更多推荐
已为社区贡献3条内容
所有评论(0)