CmdID / kubectl / kubectl top
kubectl top pods
Display resource (CPU/memory) usage of pods kubectl reference
10 options
Also kubectl top po, kubectl top pod
Its page in the kubectl reference
Options
--all-namespaces, -AIf present, list the requested object(s) across all namespaces.--containersIf present, print usage of containers within a pod.--field-selectorSelector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2).--help, -hhelp for pod--no-headersIf present, print output without headers.--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).--show-swapPrint pod resources related to swap memory.--sort-byIf non-empty, sort pods list using specified field.--sumPrint the sum of the resource usage--use-protocol-buffersEnables using protocol-buffers to access Metrics API.