Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Created January 25, 2022 18:34
Show Gist options
  • Save lbbedendo/7672a32514bef6f0c3b007191445af3e to your computer and use it in GitHub Desktop.
Save lbbedendo/7672a32514bef6f0c3b007191445af3e to your computer and use it in GitHub Desktop.
kubectl top pods sorting by memory or cpu
kubectl top pods --all-namespaces --containers=true --sort-by=memory
kubectl top pods --all-namespaces --containers=true --sort-by=cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment