Kubernetes Network Debugging Cheat Sheet/Find pods selected by a service

Confirm that backend pods actually match the selector.

Section: Service Debug Playbook

Find pods selected by a service

bash
bash
kubectl get pods -n <namespace> -l app=<label> -o wide

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
Check pod readiness gates for service endpoints
Non-ready pods usually do not appear as ready endpoints.
OpenIn sheetbashsame section
Compare service and endpoints quickly
Display selector and endpoints in separate quick commands.
OpenIn sheetbashsame section
Show Service selector
Verify that pod labels match the Service selector.
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 endpoints
Verify which backends a Service resolves to.
OpenIn sheetbash1 tag match