kubectl get nodes 报错 The connection to the server localhost:8080 was refused - did you specify the right host or port?

解决方案

在master执行export KUBECONFIG=/etc/kubernetes/admin.conf 即可

posted @ 2021-10-14 11:37  羊脂玉净瓶  阅读(299)  评论(0)    收藏  举报