k8s提示Unable to connect to the server: x509

解决方法:

echo export KUBECONFIG=/etc/kubernetes/kubelet.conf >> ~/.bashrc
source ~/.bashrc
原文地址:https://www.cnblogs.com/lfl17718347843/p/14122407.html