coredns一直ContainerCreating
来源:4-7 初始化Kubernetes Master

慕九州2424660
2024-12-25
写回答
1回答
-
清风
2025-01-06
参考:https://stackoverflow.com/questions/52645473/coredns-fails-to-run-in-kubernetes-cluster
open and edit the configmap of coredns.
kubectl edit cm coredns -n kube-system
"replacing proxy . /etc/resolv.conf with the ip address of your upstream DNS, for example proxy . 8.8.8.8." According to the link in the output of the coredns log (at the end of the page)
save and exit.
kubectl get pods -n kube-system -oname |grep coredns |xargs kubectl delete -n kube-system
The reason of the problem is explained in the link. You can find this link in the output of this cmd
kubectl logs coredns-7d9cd4f75b-cpwxp -n kube-system
00
相似问题