hardkubectl
Filter and list pods matching a specific label selector
command
kubectl get pods -l KEY=VALUEalso accepted
kubectl get pods -lkubectl get po -l KEY=VALUEkubectl get pods --selector KEY=VALUEcommand
kubectl get pods -l KEY=VALUEalso accepted
kubectl get pods -lkubectl get po -l KEY=VALUEkubectl get pods --selector KEY=VALUEPart of the Kubernetes CLI (kubectl) — Pods category.
| Flag | Purpose |
|---|---|
-l | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →