问题描述:
在kubernetesji集群从1.16.x版本升级到1.17.x版本地时候报错:
Failed to initialize CSINode: error updating CSINode annotation: timed out waiting for the condition; caused by: the server could not find the requested resource
原因:
升级一个控制面板时,虽然单个控制面板升级到1.17.x了,但是集群的版本还是1.16.x的,不支持针更高版本的API。
解决方法:
编辑配置文件/var/lib/kubelet/config.yaml,在其增加以下配置:
featureGates:
CSIMigration: false
重启kubelet:
systemctl daemon-reload
systemctl restart kubelet
网友评论