访问服务器显示我被拒绝,连接到服务器localhost:8080被拒绝(The connection to the server localhost:8080 was refused)...

连接到服务器localhost:8080被拒绝(The connection to the server localhost:8080 was refused)

我能够在Kubernetes中聚集2个节点。 主节点似乎运行正常,但在工作节点上运行任何命令都会导致错误:“与服务器localhost:8080的连接被拒绝 - 您是否指定了正确的主机或端口?”

从master(node1),

$ kubectl get nodes

NAME STATUS AGE VERSION

node1 Ready 23h v1.7.3

node2 Ready 23h v1.7.3

从工人(节点2),

$ kubectl get nodes

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

$ telnet localhost 8080

Trying ::1...

telnet: connect to address ::1: Connection refused

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

$ ping localhost

PING localhost (127.0.0.1) 56(84) bytes of data.

64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.032 ms

我不知道如何解决这个问题。 任何帮助表示赞赏。

你可能感兴趣的:(访问服务器显示我被拒绝)