Within the Kubernetes cluster which enables SkyDNS (Google Container Engine), how can I find the IP:PORT of the SkyDNS?

I want to add that DNS server to NODE's resolve.conf


If you run kubectl cluster-info it will list the proxy endpoints for the cluster addon services. E.g.

$ kubectl cluster-info 
Kubernetes master is running at
GLBCDefaultBackend is running at
KubeDNS is running at

If you're looking for the specific IP:PORT of the pods:

$ kubectl get endpoints kube-dns --namespace=kube-system
NAME       ENDPOINTS                     AGE
kube-dns,   10d

But be aware that that will change if pods are restarted for any reason.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.