当前位置:   article > 正文

k8s 1.22使用nfs存储类报错:unexpected error getting claim reference: selfLink was empty, can‘t make referenc_class "flink-log-nfs-storage": unexpected error ge

class "flink-log-nfs-storage": unexpected error getting claim reference: sel

报错提示

unexpected error getting claim reference: selfLink was empty, can‘t make reference

原因定位

elfLink was empty 在k8s集群 v1.20之前都存在,在v1.20之后被删除,需要在/etc/kubernetes/manifests/kube-apiserver.yaml 添加参数增加 - --feature-gates=RemoveSelfLink=false

解决办法

vim /etc/kubernetes/manifests/kube-apiserver.yaml

spec:
containers:
- command:
    - kube-apiserver
    - --feature-gates=RemoveSelfLink=false
  • 1
  • 2
  • 3
  • 4
  • 5

kubectl apply -f /etc/kubernetes/manifests/kube-apiserver.yaml


参考链接:https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/issues/25

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/565453
推荐阅读
相关标签
  

闽ICP备14008679号