With --containers, we can check in more detail the metrics of containers inside pod. This is helpful if you want to determine the specific containers’ metrics in a multi-container pod.
k top pod test --containers
POD NAME CPU(cores) MEMORY(bytes)
test mem-stress 24m 30Mi
test test1 0m 13Mi