Which command lists Pods in namespace team-1?
Answer & explanation
Answer: kubectl get pods -n team-1
-n selects the namespace for a namespaced resource operation.
Practice namespaces with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: kubectl get pods -n team-1
-n selects the namespace for a namespaced resource operation.