PRACTICE / UNDERSTAND / REPEAT

Kubernetes: Namespaces

Practice namespaces with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Namespaces · MCQQuestion link ↗

Which command lists Pods in namespace team-1?

Choose one answer
Answer & explanation

Answer: kubectl get pods -n team-1

-n selects the namespace for a namespaced resource operation.