Kubernetes Network Debugging Cheat Sheet/Compare service and endpoints quickly

Display selector and endpoints in separate quick commands.

Section: Service Debug Playbook

Compare service and endpoints quickly

bash
bash
kubectl get svc <service> -n <namespace> -o yaml && kubectl get endpoints <service> -n <namespace> -o yaml

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Service Debug Playbook
Find pods selected by a service
Confirm that backend pods actually match the selector.
OpenIn sheetbashsame section
Check pod readiness gates for service endpoints
Non-ready pods usually do not appear as ready endpoints.
OpenIn sheetbashsame section
List endpoints
Verify which backends a Service resolves to.
OpenIn sheetbash2 tag match
List services
Check Service types, ports, and cluster IPs.
OpenIn sheetbash1 tag match
Describe a service
Inspect selectors, target ports, and events.
OpenIn sheetbash1 tag match
List EndpointSlices
Inspect endpoint slice distribution for a Service.
OpenIn sheetbash1 tag match