###在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?
原文:https://www.cnblogs.com/sxgaofeng/p/12082899.html