Bird
0
0

What will be the output of kubectl get pods -n kube-system if the cluster is freshly installed?

medium📝 Command Output Q4 of 15
Kubernetes - Namespaces
What will be the output of kubectl get pods -n kube-system if the cluster is freshly installed?
AError: namespace kube-system not found
BList of system pods running in kube-system namespace
CNo resources found in kube-system namespace
DList of user pods in default namespace
Step-by-Step Solution
Solution:
  1. Step 1: Understand the kube-system namespace contents

    The kube-system namespace contains system pods like DNS, scheduler, and controller manager.
  2. Step 2: Predict output of the command

    The command lists pods in kube-system, so it will show system pods if the cluster is freshly installed.
  3. Final Answer:

    List of system pods running in kube-system namespace -> Option B
  4. Quick Check:

    Pods in kube-system = system pods list [OK]
Quick Trick: kube-system pods are system components [OK]
Common Mistakes:
  • Expecting user pods in kube-system
  • Assuming kube-system does not exist
  • Confusing default namespace pods with kube-system

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes