k8wiz
Kubernetes
Easy
Commands

Which kubectl command would you use to view the resource usage of pods?

Select your answer:

Show answer and explanation

Answer: kubectl top pods

Explanation

The 'kubectl top pods' command displays the resource usage (CPU/memory) of pods. This requires the Metrics Server to be deployed in your cluster to collect and provide this data.

Read more about Kubernetes