Debug a Kubernetes service with no endpoints

8 steps · about 3 h 40 min · Intermediate

  1. Understand Service selection (reference, Kubernetes Docs, 30 min)

    Connect selectors, endpoint discovery, ports and stable virtual addressing before troubleshooting.

  2. Confirm the namespace (guide, Kubernetes Docs, 20 min)

    Ensure the Service and intended pods are being inspected within the same namespace scope.

  3. Compare selectors and labels (guide, Kubernetes Docs, 25 min)

    Find exact key-value mismatches that prevent the Service from selecting pods.

  4. Read pod readiness (guide, Kubernetes Docs, 30 min)

    Separate running containers from pods that are actually ready to receive Service traffic.

  5. Inspect readiness probes (guide, Kubernetes Docs, 30 min)

    Verify probe path, port, timing and success against the application's real behaviour.

  6. Check port mapping (guide, Kubernetes Docs, 25 min)

    Trace Service port and targetPort to the actual port exposed by the selected workload.

  7. Use cluster events (guide, Kubernetes Docs, 25 min)

    Read recent object-level evidence before inferring a network or application failure.

  8. Follow the Service debug path (guide, Kubernetes Docs, 35 min)

    Test each layer in order and apply only the smallest correction supported by observations.