Debug Kubernetes service discovery and endpoint routing
8 steps · about 2 h 50 min · Intermediate
- Trace backends through EndpointSlices (doc, Kubernetes Documentation, 24 min)
EndpointSlices expose the addresses, readiness and ports that connect a Service to its pods.
- Understand virtual service address allocation (doc, Kubernetes Documentation, 20 min)
ClusterIP allocation explains whether the expected virtual address is valid within the cluster ranges.
- 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.
- Test cluster DNS independently (tutorial, Kubernetes Documentation, 24 min)
A known probe and DNS logs separate name-resolution faults from service routing faults.
- Compare selectors pods and EndpointSlices (reference, Kubernetes Documentation, 18 min)
Structured output reveals missing endpoints, wrong labels and readiness changes without guessing.
- 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.
- Understand virtual-IP proxy modes (doc, Kubernetes Documentation, 26 min)
Proxy implementation details help explain failures after endpoints and DNS have been proven healthy.
- 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.