場景: 節點須要看見Pod 提示錯誤vim
The connection to the server localhost:8080 was refused - did you specify the right host or port?
2 : Master節點複製config文件到Node節點spa
Master節點的config文件位置. 打開vim kubeadm-init.log在末尾code
對,如上圖的文件複製到節點, 在節點執行下面操做server
export KUBECONFIG=/root/config