Bird
0
0

Which of the following is the correct command to check the status of the Kubernetes scheduler component?

easy📝 Syntax Q12 of 15
Kubernetes - Fundamentals
Which of the following is the correct command to check the status of the Kubernetes scheduler component?
Akubectl get pods -n kube-system | grep scheduler
Bkubectl get nodes --show-scheduler
Ckubectl describe scheduler
Dkubectl get scheduler-status
Step-by-Step Solution
Solution:
  1. Step 1: Identify how to check scheduler status

    The scheduler runs as a pod in the kube-system namespace, so checking pods there helps find it.
  2. Step 2: Analyze each command

    kubectl get pods -n kube-system | grep scheduler lists pods in kube-system and filters for scheduler, which is correct. The other commands are invalid kubectl commands or do not exist.
  3. Final Answer:

    kubectl get pods -n kube-system | grep scheduler -> Option A
  4. Quick Check:

    Scheduler runs as pod, check pods in kube-system [OK]
Quick Trick: Scheduler runs as pod; check pods in kube-system namespace [OK]
Common Mistakes:
  • Using invalid kubectl commands
  • Trying to describe scheduler directly
  • Assuming scheduler is a node property

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes