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

Posted sxgaofeng

tags:

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

###在master将文件拷贝到kubernetes节点上

scp /etc/kubernetes/admin.conf dataexa-k8s-node-01:/etc/kubernetes/

 

###环境变量生效

echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile

source ~/.bash_profile

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