''' 子节点运行k8s命令会报错The connection to the server localhost:8080 was refused - did you specify the right host or port? 因为运行k8s需要配置文件,需要把master的配置文件copy到node上 ''' #在Master节点运行下面命令将admin.conf文件拷贝到从节点 scp /etc/kubernetes/admin.conf root@node1:~ #在Node节点运行下面命令配置环境变量,~就是$HOME export KUBECONFIG=$HOME/admin.conf



