k8s 报错 -Unable to connect to the server: x509: certificate signed by unknown authority
执行一下命令,然后kubectl get nodes 试一下
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 nodes --insecure-skip-tls-verify 试一下
努力让自己变得不那么low