Kubernetes The connection to the server localhost:8080 was refused - did you specify the right host
发布时间
阅读量:
阅读量
配置kubenetes的flannel网络的时候,出现以下报错
The connection to the server localhost:8080 was denied, and the user did not specify the correct host or port.
原因:
kubenetes master没有与本机绑定,集群初始化的时候没有设置
解决办法(执行以下命令):
export KUBECONFIG=/etc/kubernetes/admin.conf
注:/etc Kubernetes admin.conf这个文件主要用于在集群初始化阶段传递必要的配置信息。
全部评论 (0)
还没有任何评论哟~
