After installing Metrics Server, what is the expected output of kubectl top nodes?
medium📝 Command Output Q13 of 15
Kubernetes - Monitoring and Logging
After installing Metrics Server, what is the expected output of kubectl top nodes?
AA list showing CPU and memory usage for each node
BAn error saying Metrics Server is not found
CA list of pods running on each node
DNo output, command does nothing
Step-by-Step Solution
Solution:
Step 1: Understand kubectl top nodes command
This command shows current CPU and memory usage metrics for each node in the cluster, provided Metrics Server is installed and working.
Step 2: Identify expected output
With Metrics Server installed, it returns a table listing nodes with their CPU and memory usage. Errors or empty output indicate installation or connectivity issues.
Final Answer:
A list showing CPU and memory usage for each node -> Option A
Quick Check:
kubectl top nodes = node resource usage list [OK]
Quick Trick:kubectl top nodes shows node CPU/memory usage [OK]
Common Mistakes:
Expecting pod lists instead of metrics
Assuming command fails after installation
Confusing with other kubectl commands
Master "Monitoring and Logging" in Kubernetes
9 interactive learning modes - each teaches the same concept differently