Created
November 1, 2017 21:12
-
-
Save mikejk8s/bf3d63d47a30160b6e76b4bed323adaa to your computer and use it in GitHub Desktop.
for loop pod delete
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
for pod in `kubectl get pod -n=yournamespace --show-all |grep Your-Pod-Name |awk '{ print $1 }'`; do kubectl delete pod $pod -n=yournamespace; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment