kubectl没有配置,可执行:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl get po -A
遇到:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
请问怎么解决