创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
节点都是Centos7.6 6C/12G
Kubernetes版本信息
1.21.5
容器运行时
docker 20.10.10
KubeSphere版本信息
3.2.0
问题是什么
新增节点的时候报错
INFO[15:28:21 CST] Get cluster status
WARN[15:28:52 CST] Task failed ...
WARN[15:28:52 CST] error: Failed to get cluster info: Failed to exec command: sudo -E /bin/sh -c "/usr/local/bin/kubectl --no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses"
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1
Error: Failed to get cluster status: Failed to get cluster info: Failed to exec command: sudo -E /bin/sh -c "/usr/local/bin/kubectl --no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses"
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1