kubernetes-the-hard-way icon indicating copy to clipboard operation
kubernetes-the-hard-way copied to clipboard

unable to resolve DNS in step 12

Open tdubb123 opened this issue 3 years ago • 1 comments

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

tdubb123 avatar Nov 09 '21 14:11 tdubb123

This fixed the issue for me:

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

wiggitywhitney avatar Nov 25 '21 15:11 wiggitywhitney