> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/k8s/getting-cpu-and-memory-usage-for-container.md).

# getting cpu and memory usage for container

```
$ kubectl top po --containers
POD                                NAME                CPU(cores)   MEMORY(bytes)
1-cpu-pod                          ubuntu              2m           73Mi
...
```
