Filter resources using labels.
Section: Inspection and Deep Queries
Label selector filter
bash
bash
kubectl get pods -n payments -l 'app=web,component=api'Explanation
Filter resources using labels.
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 Inspection and Deep Queries