Debug Kubernetes service discovery and endpoint routing

8 steps · about 2 h 50 min · Intermediate

  1. Trace backends through EndpointSlices (doc, Kubernetes Documentation, 24 min)

    EndpointSlices expose the addresses, readiness and ports that connect a Service to its pods.

  2. Understand virtual service address allocation (doc, Kubernetes Documentation, 20 min)

    ClusterIP allocation explains whether the expected virtual address is valid within the cluster ranges.

  3. Choose the right cluster-debugging path (tutorial, Kubernetes Documentation, 24 min)

    The task index separates application, node, DNS and control-plane evidence before a change is attempted.

  4. Test cluster DNS independently (tutorial, Kubernetes Documentation, 24 min)

    A known probe and DNS logs separate name-resolution faults from service routing faults.

  5. Compare selectors pods and EndpointSlices (reference, Kubernetes Documentation, 18 min)

    Structured output reveals missing endpoints, wrong labels and readiness changes without guessing.

  6. Probe from the affected pod context (reference, Kubernetes Documentation, 16 min)

    An in-place check uses the workload's namespace, resolver and network-policy identity.

  7. Understand virtual-IP proxy modes (doc, Kubernetes Documentation, 26 min)

    Proxy implementation details help explain failures after endpoints and DNS have been proven healthy.

  8. Build a reproducible final verification (tutorial, Kubernetes Documentation, 18 min)

    Repeat the same name, port and direct-endpoint tests after the correction and preserve both allowed and failed results.