首页 > 其他 > 详细

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

时间:2018-08-31 16:19:31      阅读:3698      评论:0      收藏:0      [点我收藏+]

配置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?

原文:https://www.cnblogs.com/lkun/p/9566307.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!