Kubernetes: Pods Can't Resolve Hostnames

前端 未结 4 1205
忘掉有多难
忘掉有多难 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:29

    Some ideas come to mind:

    • Maybe the kube-proxy service is not working correctly and hence the kube-dns service is not acccessible. Could you check that it is working?
    • You did not install a network overlay correctly, for example Calico: https://docs.projectcalico.org/v2.4/getting-started/kubernetes/installation/hosted/kubeadm/. Did you install it and it is working?

提交回复
热议问题