我正在尝试使用Kubernetes中的配置文件初始化集群,kubeadm,kubectl和kubelet的版本以及所有节点的版本如下。
1.kubeadm
kubeadm version: &version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:17:50Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
2.kubectl
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
3.kubelet
Kubernetes v1.18.3
但是我仍然收到我的控制平面版本较小的错误,如下所述:
this version of kubeadm only supports deploying clusters with the control plane version >= 1.16.0. Current version: v1.12.0
To see the stack trace of this error execute with --v=5 or higher
为什么会出现此错误?有人可以帮我吗。在此先感谢您的宝贵时间-如果我错过了任何内容,请在评论中让我知道具体的重点。
答案 0 :(得分:1)
通过在kubeadm配置文件中添加kubernetesVersion
,可以在安装过程中选择特定版本的kubernetes控制平面。
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.17.0
apiServer:
...