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:
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.
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.
Final Answer:
kubectl get pods -n kube-system | grep scheduler -> Option A
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
Master "Fundamentals" in Kubernetes
9 interactive learning modes - each teaches the same concept differently