All pods are Running and Ready, but the Service has no endpoints and traffic fails.

IntermediateTroubleshootingSite down
Answer

Likely causes → Service selector doesn't match pod labels (a label renamed in the Deployment), wrong namespace, or targetPort pointing to a port name that doesn't exist.

Diagnose →

kubectl get endpointslices -n prod -l kubernetes.io/service-name=web
kubectl get svc web -n prod -o jsonpath='{.spec.selector}'; echo
kubectl get pods -n prod --show-labels

Fix → Align the selector and labels, or fix targetPort. Endpoints appear within seconds.

Prevent → Treat selectors as immutable contracts, lint charts with a test that asserts endpoints exist after install, and alarm on Services with zero ready endpoints.

All Real-World Interview questions Roadmap: Interview readiness

More on Site down