kubectl error: The connection to the server localhost:8080 was refused

解决kubectl error: The connection to the server localhost:8080 was refused

 mkdir -p $HOME/.kube
 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
 sudo chown $(id -u):$(id -g) $HOME/.kube/config

你可能感兴趣的:(kubernetes)