The connection to the server localhost:8080 was refused

来源:5-7 网络插件-Calico_1

qq_慕丝0528892

2021-06-12

我在节点1和节点2中执行命令出现错误

$ kubectl apply -f calico.yaml
The connection to the server localhost:8080 was refused - did you specify the right host or port?

不知道为什么会连接8080端口, 而且连不上, 是我哪里配置错误了呢?
执行kubectl get pod也是一样的错误

写回答

1回答

刘果国

2021-06-12

配置文件:~/.kube/config

0
7
weixin_慕虎6232861
我也是报一样的错误。但是~/.kube/没有config文件
2023-01-31
共7条回复

Kubernetes生产落地全程实践

一个互联网公司落地Kubernetes全过程点点滴滴

2293 学习 · 2211 问题

查看课程