k8s-master 重启之后报错

The connection to the server 192.168.1.30:6443 was refused - did you specify the right host or port?

mkdir -p $HOME/.kube

cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

chown $(id -u):$(id -g) $HOME/.kube/config

export KUBECONFIG=/etc/kubernetes/admin.conf

posted @ 2022-04-03 22:35  cloud-qing0212  阅读(125)  评论(0编辑  收藏  举报