A pod is running but your application cannot connect to a service by name. Which command helps verify DNS resolution from inside the cluster?
-
A
kubectl get dns -n kube-system
-
B
kubectl exec -it <pod> -- nslookup <service-name>
-
C
kubectl describe service <service-name> --dns
-
D
kubectl logs -n kube-system -l k8s-app=kube-dns