Skip to content

Instantly share code, notes, and snippets.

@caffeinetiger
Last active April 18, 2022 18:31
Show Gist options
  • Select an option

  • Save caffeinetiger/775e370372a120fb74662eb400f997e8 to your computer and use it in GitHub Desktop.

Select an option

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.
# 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