Title here
Summary here
Frontend pod frontend-app cannot connect to Backend pod backend-app using the service name http://backend-svc. It returns “Name or service not known”.
How do you debug this DNS/Network issue?
backend-svc exist? Does it have valid Endpoints? (kubectl get ep backend-svc). If no endpoints, the selector doesn’t match the pods.nslookup backend-svc or dig backend-svc.default.svc.cluster.local.kube-system? Check their logs for errors.