Skip to content

Instantly share code, notes, and snippets.

@pcostesi
Created January 21, 2019 15:04
Show Gist options
  • Save pcostesi/592cac7e0717f4ffd5e24e1282eef844 to your computer and use it in GitHub Desktop.
Save pcostesi/592cac7e0717f4ffd5e24e1282eef844 to your computer and use it in GitHub Desktop.
Clean up pods
kubectl get pods --field-selector=status.phase!=Running --all-namespaces -o json | kubectl delete -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment