get ns报错The connection to the server localhost:8080 was refused
来源:4-3 用kubespray一键部署生产级k8s集群

weixin_慕虎6232861
2023-02-03
使用kubectl get ns 出现报错
The connection to the server localhost:8080 was refused - did you specify the right host or port?
按照已解决办法,找不到 :~/.kube/config 的配置文件
网上说在/etc/kubernetes/admin.conf ,依然找不到配置文件,
有帖子说使用kubeadmin init ,提示又报错
请帮忙解答下哈
写回答
1回答
-
刘果国
2023-02-03
课程里有kubectl的配置部分哈,仔细看看
012023-02-03
相似问题