k8s获取节点时报错
The connection to the server localhost:8080 was refused - did you specify the right host or port?
原因:k8s初始化后没有创建必要的运行文件
解决方法:根据初始化成功后的提示创建文件
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config