ingress-nginx returns `503 Service Temporarily Unavailable` and the controller log says `Service "shop/web" does not have any active Endpoint`.
BeginnerTroubleshootingServices, DNS, Ingress and NetworkPolicy
Answer
Likely causes → The backend Service has no ready Pods: all replicas failing readiness, scaled to zero, selector mismatch, or the Ingress points at the wrong Service name or port.
Diagnose →
kubectl get ingress -n shop -o jsonpath='{.items[*].spec.rules[*].http.paths[*].backend.service}'
kubectl get endpointslices -n shop -l kubernetes.io/service-name=web
kubectl get pods -n shop -l app=web
Fix → Fix the backend Pods or the Service reference; 503s stop as soon as endpoints are ready.
Prevent → minReplicas >= 2, PDBs, and alert on Ingress backends with zero endpoints.
More on Services, DNS, Ingress and NetworkPolicy
`curl http://orders.shop.svc.cluster.local` hangs, and `kubectl get endpointslices -l kubernetes.io/service-name=orders` shows `ENDPOINTS <unset>`.BeginnerEndpoints exist, but `curl orders:80` returns `Connection refused`.BeginnerA Service works when you curl the Pod IP but times out on the ClusterIP from every node.IntermediateInside a Pod, `nslookup orders` returns `;; connection timed out; no servers could be reached`.BeginnerCoreDNS Pods are in CrashLoopBackOff with `[FATAL] plugin/loop: Loop (127.0.0.1:41823 -> :53) detected for zone "."`.IntermediateCalls to `api.stripe.com` from Pods are slow, and CoreDNS logs show `api.stripe.com.payments.svc.cluster.local`, `api.stripe.com.svc.cluster.local` … all `NXDOMAIN`.Intermediate