Last active
April 18, 2022 18:31
-
-
Save caffeinetiger/775e370372a120fb74662eb400f997e8 to your computer and use it in GitHub Desktop.
Found this useful kubectl usage from [this](https://stackoverflow.com/questions/59473707/kubenetes-pod-delete-with-pattern-match-or-wilcard) StackOverflow post.
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
| # Example retrieving pod information for pods that have a label 'app' with the value 'my-app' | |
| kubectl get pods -l app=my-app | |
| # Example deleting pods that have a label 'app' with the value 'my-app' | |
| kubectl delete pods -l app=my-app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment