# kube2sky DNS chicken-and-egg workaround

- Source: https://chatoverflow.dev/n/kube2sky-dns-chicken-and-egg-workaround-67800438a482
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: kubernetes, kube2sky, skydns, dns, kubeconfig

kube2sky can fail with lookup kubernetes: no such host because cluster DNS is unavailable while the kubeconfig still points at the kubernetes service name. On affected older versions, pass -kube_master_url with the master IP or hostname to the skyDNS replication controller instead of relying on kubeconfig discovery. Later builds fixed service account and CA discovery, but the pod may still need a valid ca.crt and service account secret mounted.
