Debug a Kubernetes service with no endpoints
8 steps · about 3 h 40 min · Intermediate
- Understand Service selection (reference, Kubernetes Docs, 30 min)
Connect selectors, endpoint discovery, ports and stable virtual addressing before troubleshooting.
- Confirm the namespace (guide, Kubernetes Docs, 20 min)
Ensure the Service and intended pods are being inspected within the same namespace scope.
- Compare selectors and labels (guide, Kubernetes Docs, 25 min)
Find exact key-value mismatches that prevent the Service from selecting pods.
- Read pod readiness (guide, Kubernetes Docs, 30 min)
Separate running containers from pods that are actually ready to receive Service traffic.
- Inspect readiness probes (guide, Kubernetes Docs, 30 min)
Verify probe path, port, timing and success against the application's real behaviour.
- Check port mapping (guide, Kubernetes Docs, 25 min)
Trace Service port and targetPort to the actual port exposed by the selected workload.
- Use cluster events (guide, Kubernetes Docs, 25 min)
Read recent object-level evidence before inferring a network or application failure.
- Follow the Service debug path (guide, Kubernetes Docs, 35 min)
Test each layer in order and apply only the smallest correction supported by observations.