kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
40.72k stars 13.96k forks source link

Pods can't resolve any DNS #752

Closed ezloj closed 10 months ago

ezloj commented 10 months ago

Hey, this issue is for anyone that took their cluster a bit further and tried to do something that requires pods resolving DNS.

I struggled with some of the below errors while trying to run datadog agent in the cluster (including errors in the event someone searches this repo for issues)

Coredns error: [ERROR] plugin/errors: 2 google.com.europe-central2-a.c.massive-pen-404512.internal. A: plugin/loop: no next plugin found

Trying to resolve google.com:

/app # nslookup google.com
Server:         10.32.0.10
Address:        10.32.0.10:53

** server can't find google.com: SERVFAIL

** server can't find google.com: SERVFAIL

You can find the answer on SO: https://stackoverflow.com/questions/77562320/pods-cant-resolve-any-dns/77562544#77562544