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

posted on 2019-12-23 11:39  石圪节胡德禄  阅读(977)  评论(0编辑  收藏  举报

导航