曾经搭建时,使用的是 ./kk create
前天操作过程中,不小心在master节点上执行力kubeadm reset ,没有执行完就ctrl+c取消了
然后执行了
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
和
kubeadm init –kubernetes-version=v1.17.9 –pod-network-cidr=10.244.0.0/16
后面kubectl服务能启动起来,但是执行任何命令都会报错
root@ks-master:~/kubesphere# kubectl version
Client Version: version.Info{Major:“1”, Minor:“17”, GitVersion:“v1.17.9”, GitCommit:“4fb7ed12476d57b8437ada90b4f93b17ffaeed99”, GitTreeState:“clean”, BuildDate:“2020-07-15T16:18:16Z”, GoVersion:“go1.13.9”, Compiler:“gc”, Platform:“linux/amd64”}
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?