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

Posted lkun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The connection to the server localhost:8080 was refused - did you specify the right host or port?相关的知识,希望对你有一定的参考价值。

配置kubenetes的flannel网络的时候,出现以下报错

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

 

 

原因:kubenetes master没有与本机绑定,集群初始化的时候没有设置

解决办法:执行以下命令   export KUBECONFIG=/etc/kubernetes/admin.conf

/etc/kubernetes/admin.conf这个文件主要是集群初始化的时候用来传递参数的

以上是关于The connection to the server localhost:8080 was refused - did you specify the right host or port?的主要内容,如果未能解决你的问题,请参考以下文章

Ionic App 启动时报Application Error - The connection to the server was unsuccessful

kubectl error: The connection to the server localhost:8080 was refused

mysql错误 MacERR_WHEN_INSERT_TO_DB Error:Connection lost: The server closed the connection.

How to do if the GM MDI cant connect with the software

C# Mysql You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser

k8s The connection to the server was refused 问题解决记录