Bird
0
0

You set up cluster monitoring but notice no metrics appear when running kubectl top nodes. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Monitoring and Logging
You set up cluster monitoring but notice no metrics appear when running kubectl top nodes. What is the most likely cause?
ANodes are offline.
Bkubectl command is outdated.
CMetrics-server is not installed or running.
DPods are not labeled correctly.
Step-by-Step Solution
Solution:
  1. Step 1: Understand what provides metrics for 'kubectl top'

    The metrics-server collects resource usage data for nodes and pods.
  2. Step 2: Identify why metrics might be missing

    If metrics-server is missing or not running, kubectl top shows no data.
  3. Final Answer:

    Metrics-server is not installed or running. -> Option C
  4. Quick Check:

    Missing metrics = metrics-server issue [OK]
Quick Trick: No metrics? Check if metrics-server is running [OK]
Common Mistakes:
  • Blaming kubectl version without checking metrics-server
  • Assuming nodes are offline without verification
  • Thinking pod labels affect node metrics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes