skip to content
Alvin Lucillo

Show container usage

/ 1 min read

You can see individual container’s usage by using --containers argument. By default, kubectl top pods shows aggregated usage kubectl top pod --containers

$ kubectl top pods --containers
pod/frontend-7b9fd4c6d-abc12
  container/frontend        42m        105Mi
  container/sidecar-logger   3m         25Mi
pod/api-6c8fbd7c45-def34
  container/api             85m        220Mi
  container/otel-agent      10m         60Mi