当前位置:   article > 正文

部署k8s动态持久卷nfs报错如下:waiting for a volume to be created, either by external provisioner “gxf-nfs-storag

waiting for a volume to be created, either by external provisioner "nfs-stor

报错如下: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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/420129
推荐阅读
相关标签
  

闽ICP备14008679号