Skip to content

Instantly share code, notes, and snippets.

@vutkin
Forked from mclarke47/kubectl-restarts.sh
Created September 11, 2024 12:10
Show Gist options
  • Save vutkin/f7a3336f48a616d9cce84cba20547707 to your computer and use it in GitHub Desktop.
Save vutkin/f7a3336f48a616d9cce84cba20547707 to your computer and use it in GitHub Desktop.
Sort pods by restart count
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment