Created
January 9, 2023 10:40
-
-
Save HarshadRanganathan/7e27bd464e58d7f7e249e8452ffb4b82 to your computer and use it in GitHub Desktop.
Useful Kubectl Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods --all-namespaces | grep -E OutOfcpu\|Evicted\|Completed\|OOMKilled\|Error\|ContainerStatusUnknown | awk '{print "kubectl delete po " $2 " -n " $1 }' | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment