Kubernetes - kubectl or istioctl list all internal dns

8/14/2018

In Kubernetes(kubectl) 1.10 or Istio(istioctl) 1.0

I know I can list services with kubectl get svc, and I can figure out the namespace and from there add .svc.cluster.local.

Is it possible to list internal dns?

Thanks

-- Chris G.
istio
kubernetes

1 Answer

8/27/2018

Unfortunately you would have to list the DNS of each pod manually as there is no command available for both Istio or Kubernetes. You can however look at this following link which will guide you into creating a shell in the running container so that you can list the internal DNS manually

-- hachemon
Source: StackOverflow