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

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

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

注释掉

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

kubectl get pods -n kube-system

找到coredns服务

coredns-5bb9675886-gxc5t                       1/1     Running   26 (2m49s ago)   75m
coredns-5bb9675886-sq66r                       1/1     Running   26 (3m7s ago)    75m

删除掉这两个
kubectl delete pod coredns-5bb9675886-sq66r -n kube-system
kubectl delete pod coredns-5bb9675886-gxc5t -n kube-system

你可能感兴趣的:(java,数据库,servlet)