• K8s 1.20x版本nfs动态存储报错 persistentvolume-controller waiting for a volume to be created, either by external provisioner "qgg-nfs-storage" or manually created by system administrator


    查看报错

    [root@k8s-matser01 nfs.rbac]# kubectl get pvc
    NAME         STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS          AGE
    test-claim   Pending                                      managed-nfs-storage   5s
    [root@k8s-matser01 nfs.rbac]# kubectl describe pvc test-claim 
    Name:          test-claim
    Namespace:     default
    StorageClass:  managed-nfs-storage
    Status:        Pending
    Volume:        
    Labels:        <none>
    Annotations:   volume.beta.kubernetes.io/storage-class: managed-nfs-storage
                   volume.beta.kubernetes.io/storage-provisioner: qgg-nfs-storage
    Finalizers:    [kubernetes.io/pvc-protection]
    Capacity:      
    Access Modes:  
    VolumeMode:    Filesystem
    Used By:       <none>
    Events:
      Type    Reason                Age               From                         Message
      ----    ------                ----              ----                         -------
      Normal  ExternalProvisioning  8s (x2 over 13s)  persistentvolume-controller  waiting for a volume to be created, either by external provisioner "qgg-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@k8s-matser01 nfs.rbac]# kubectl get pvc
    NAME         STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS          AGE
    test-claim   Bound    pvc-ba0152df-98e4-41fd-b0aa-b79b7aa8419b   1Mi        RWX            managed-nfs-storage   3m11s
    
  • 相关阅读:
    Django学习过程中遇到的问题
    代理工具WebScarab安装(转载)
    MongoDB安装之window版本的安装
    QT打包
    小工具--串口
    多线程--信号量
    关于多线程
    QQ界面及简单操作实现
    udp通信
    char *p = "abc";char p[] = "abc";两者之间的区别
  • 原文地址:https://www.cnblogs.com/Applogize/p/15161379.html
Copyright © 2020-2023  润新知