The connection to the server localhost:8080 was refused - did you specify the right host or port?
2018-08-31 16:02
786 查看
配置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?
- kubectl version 错误 The connection to the server localhost:8080 was refused
- X connection to localhost:10.0 host broken (explicit kill or server shutdown)
- tomcat 报错 X connection to localhost:10.0 host broken (explicit kill or server shutdown)
- 【转】Vmware ESX 3.0出现“error connecting: can not connect to host x.x.x.x: a connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed……的解决方法
- X connection to localhost:10.0 host broken (explicit kill or server shutdown)
- Connection to localhost:5432 refused. Check that the hostname and port are correct and that the post
- com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost/SQLEXPR
- 【Vegas原创】X connection to localhost:11.0 broken (explicit kill or server shutdown)解决方法
- Port 8080 required by Tomcat v7.0 Server at localhost is already in use. The server may already be
- Git配置非22端口,解决:ssh: connect to host xxx port 22: Connection timed out fatal: The remote end hung up unexpectedly
- Server 2008 R2: “You must use the Role Management Tool to install or configure Microsoft .NET”
- 运行SQL server2005 配置管理工具出现“Cannot connect to WMI provider. You do not have permmission or the server”
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- ssh:connect to host localhost port 22: Connection refused解决方法
- Linux服务器之间拷贝文件(提示connect to host localhost port 22: Connection refused lost )
- 解决connect to host localhost port 22: Connection refused问题
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- hadoop localhost:ssh:connect to host localhost port 22:Connection refused问题
- ssh: connect to host localhost port 22: Connection refused(ubuntu14.04_LTS)