k8s node节点无法执行kubectl命令
The connection to the server localhost:8080 was refused - did you specify the right host or port?
# 1.在master节点复制admin.conf到从节点相同位置
scp /etc/kubernetes/admin.conf root@192.168.1.102:/etc/kubernetes/
# 2. export 环境变量
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
# 3. 使其生效
source ~/.bash_profile