Kubernetes Not Resolving DNS Requests


#1

My set up is Kubernetes 1.11 running on Centos 7 and the flannel overlay all on VMWare.

It doesn’t look like DNS requests ever get to coredns. I have busybox running in the cluster and here is the output of a nslookup .

kubectl exec -ti busybox -- nslookup kubernetes.default.svc.cluster.local 10.96.0.10
;; connection timed out; no servers could be reached

command terminated with exit code 1

On the master node this comand works:

kubectl --namespace=kube-system exec -ti coredns-78fcdf6894-9bnrr -c     coredns --  nslookup kubernetes.default.svc.cluster.local 10.96.0.10
Server:         10.96.0.10
Address:        10.96.0.10#53

Name:   kubernetes.default.svc.cluster.local
Address: 10.96.0.1

It seems like the request isn’t getting routed?