Created
April 2, 2020 11:55
-
-
Save amrutprabhu/71142a1a62d117765d2ca969d6f5cd09 to your computer and use it in GitHub Desktop.
Delete multiple kubernetes pod based on pattern
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 -n amrut get pods | awk '{print $1}' | grep 'podname-' | xargs kubectl -n amrut delete pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment