Verify that pod labels match the Service selector.
Section: Services and Endpoints
Show Service selector
bash
bash
kubectl get svc <service> -n <namespace> -o jsonpath='{.spec.selector}{"
"}'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 Services and Endpoints
Describe an EndpointSlice
Inspect ready addresses and ports at slice level.
Find pods selected by a service
Confirm that backend pods actually match the selector.