赞
踩
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
kubectl apply -f /etc/kubernetes/manifests/kube-apiserver.yaml
参考链接:https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/issues/25
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。