Error: token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver
Edit coredns configuration information
kubectl -n kube-system edit cm coredns -o yaml
Comment out :
# forward . /etc/resolv.conf {
# max_concurrent 1000
#}
View coredns pod
kubectl get pods -n kube-system | grep core
Delete these two, The system will automatically rebuild
kubectl delete pod coredns-6d8c4cb4d-kvtp5 -n kube-system
kubectl delete pod coredns-6d8c4cb4d-tr22x -n kube-system