创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
操作系统信息
kvm虚拟机,Centos7.9
Kubernetes版本信息
例如:v18.8
KubeSphere版本信息
例如:v3.1.1。离线安装。已有K8s安装还是全套安装。 当前是一个master和一个etcd,现在扩容为3个master,3个etcd节点。 add node 的时候报错
问题是什么
报错日志:
WARN[16:42:27 CST] Task failed …
WARN[16:42:27 CST] error: Failed to upload kubeadm certs: Failed to exec command: sudo -E /bin/sh -c “/usr/local/bin/kubeadm init phase upload-certs –upload-certs”
I0217 16:40:48.730563 18296 version.go:252] remote version is much newer: v1.23.3; falling back to: stable-1.18
W0217 16:40:49.467679 18296 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[upload-certs] Storing the certificates in Secret “kubeadm-certs” in the “kube-system” Namespace
error execution phase upload-certs: error uploading certs: error creating token: timed out waiting for the condition
To see the stack trace of this error execute with –v=5 or higher: Process exited with status 1
Error: Failed to get cluster status: Failed to upload kubeadm certs: Failed to exec command: sudo -E /bin/sh -c “/usr/local/bin/kubeadm init phase upload-certs –upload-certs”
I0217 16:40:48.730563 18296 version.go:252] remote version is much newer: v1.23.3; falling back to: stable-1.18
W0217 16:40:49.467679 18296 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[upload-certs] Storing the certificates in Secret “kubeadm-certs” in the “kube-system” Namespace
error execution phase upload-certs: error uploading certs: error creating token: timed out waiting for the condition
To see the stack trace of this error execute with –v=5 or higher: Process exited with status 1
配置文件信息截图:
