easykubectl
List all pods within a specific namespace using the -n flag
command
kubectl get pods -n NAMESPACEalso accepted
kubectl get pods -nkubectl get po -n NAMESPACEkubectl get pods --namespace NAMESPACEkubectl get po -ncommand
kubectl get pods -n NAMESPACEalso accepted
kubectl get pods -nkubectl get po -n NAMESPACEkubectl get pods --namespace NAMESPACEkubectl get po -nPart of the Kubernetes CLI (kubectl) — Namespaces category.
| Flag | Purpose |
|---|---|
-n | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →