K8S Node节点报错-The connection to the server localhost:8080 was refused - did you specify the right host or port?

master 上 的/etc/kubernetes/admin.conf 文件copy到当前节点 目录下,执行以下命令

echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile

source ~/.bash_profile

 

posted @ 2021-07-20 14:17  小清澈  阅读(221)  评论(0编辑  收藏  举报