Created
August 4, 2018 12:08
-
-
Save albertlieyingadrian/6d23974c7da2f22490907f2e9c055c6b to your computer and use it in GitHub Desktop.
Remove all pods in kubernetes cluster
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
kubectl get pods --all-namespaces -o json | jq -r '.items[] | select(.metadata.name | contains("your_pods_tag"))' > pods.json && kubectl delete -f pods.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment