easykubectl

List all pods within a specific namespace using the -n flag

command

kubectl get pods -n NAMESPACE

also accepted

kubectl get pods -nkubectl get po -n NAMESPACEkubectl get pods --namespace NAMESPACEkubectl get po -n

Test your recall — not just your reading.

Practice with interactive quiz →