kubesphere安装后登录报错 token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver

报错:token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver

 

编辑coredns 配置信息

kubectl -n kube-system edit cm coredns -o yaml

注释掉:

# forward . /etc/resolv.conf {
#  max_concurrent 1000
#}

查看coredns pod

kubectl get pods -n kube-system | grep core

删除掉这两个,之后系统会自动重建

kubectl delete pod coredns-6d8c4cb4d-kvtp5 -n kube-system
kubectl delete pod coredns-6d8c4cb4d-tr22x -n kube-system

你可能感兴趣的:(kubernetes,kubesphere,运维,centos,linux)