Bird
0
0

What is the expected output of the command kubectl top node?

medium📝 Command Output Q13 of 15
Kubernetes - Troubleshooting
What is the expected output of the command kubectl top node?
AA list of pods with their resource requests
BA list of nodes with CPU and memory usage metrics
CDetailed node configuration and labels
DA list of nodes with their IP addresses only
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of 'kubectl top node'

    This command shows resource usage like CPU and memory for each node.
  2. Step 2: Differentiate from other outputs

    It does not show pod info, detailed config, or just IP addresses.
  3. Final Answer:

    A list of nodes with CPU and memory usage metrics -> Option B
  4. Quick Check:

    Resource usage per node = kubectl top node [OK]
Quick Trick: Top command shows resource usage, not config or IPs [OK]
Common Mistakes:
  • Confusing node metrics with pod metrics
  • Expecting detailed config from 'top' command
  • Thinking it shows only IP addresses

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes