kelseyhightower / kubernetes-the-hard-way

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

unable to resolve DNS in step 12 #679

Open tdubb123 opened 3 years ago

tdubb123 commented 3 years ago

https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/12-dns-addon.md

I was unable to reodlve dns in step 12

kubectl exec -ti $POD_NAME -- nslookup kubernetes

kubectl exec -ti $POD_NAME -- nslookup kubernetes

Server: 10.32.0.10 Address 1: 10.32.0.10

nslookup: can't resolve 'kubernetes' command terminated with exit code 1 % kubectl exec -ti busybox -- sh / # cat /etc/resolv.conf search default.svc.cluster.local svc.cluster.local cluster.local us-west1-a.c.voltaic-cairn-330619.internal c.voltaic-cairn-330619.internal google.internal nameserver 10.32.0.10 options ndots:5

wiggitywhitney commented 2 years ago

This fixed the issue for me:

https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/662#issuecomment-912874387