Last active
April 29, 2017 08:09
-
-
Save eggsy84/7905522f06b4fe8ada54e4e8c1b2a5dd to your computer and use it in GitHub Desktop.
Kubernetes: Delete all error status pods
This file contains 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
#!/bin/bash | |
kubectl delete pod $(kubectl get pods --show-all | grep Error | awk -F " " '{print $1}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment