Bird
0
0

What will happen if the Metrics Server is not installed and you run kubectl top nodes?

medium📝 Command Output Q5 of 15
Kubernetes - Monitoring and Logging
What will happen if the Metrics Server is not installed and you run kubectl top nodes?
AIt will show node labels instead of metrics
BAn error message saying metrics API not available
CThe command will hang indefinitely
DA list of nodes with zero CPU and memory usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand Metrics Server dependency

    kubectl top commands require Metrics Server to provide metrics API data.
  2. Step 2: Predict behavior without Metrics Server

    Without Metrics Server, the metrics API is unavailable, so kubectl top nodes returns an error.
  3. Final Answer:

    An error message saying metrics API not available -> Option B
  4. Quick Check:

    No Metrics Server = kubectl top error [OK]
Quick Trick: kubectl top needs Metrics Server; else error appears [OK]
Common Mistakes:
  • Expecting zero usage instead of error
  • Thinking command hangs without output
  • Assuming node labels are shown by kubectl top

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes