Kubernetes: Pods Can't Resolve Hostnames

前端 未结 4 1263
忘掉有多难
忘掉有多难 2021-02-05 21:40

I am encountering an issue with Kubernetes where my pods cannot resolve hostnames (such as google.com or kubernetes.default).

I currently have

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 22:28

    I had a similar problem. Restarting the coredns deployment solved it for me:

    kubectl -n kube-system rollout restart deployment coredns
    

提交回复
热议问题