严重错误:读取 kubeadm-config ConfigMap 时出现意外错误:缺少 ClusterConfiguration 键值对

严重错误:读取 kubeadm-config ConfigMap 时出现意外错误:缺少 ClusterConfiguration 键值对

当我运行时,kubeadm upgrade plan我得到:

[preflight] Running pre-flight checks. [upgrade] Making sure the cluster is healthy: [upgrade/config] Making sure the configuration is correct: [upgrade/config] Reading configuration from the cluster... [upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml' [upgrade/config] FATAL: unexpected error when reading kubeadm-config ConfigMap: ClusterConfiguration key value pair missing

这个配置图是什么以及如何获取它?

答案1

此消息来自kubeadm1.13 二进制文件。执行kubeadm upgrade1.10 -> 1.11 时,请确保使用kubeadm1.11 二进制文件。同样,kubeadm从 1.11 -> 1.12 时,请使用 1.12 二进制文件。

相关内容