Created
June 24, 2022 06:39
-
-
Save uurtech/c22e0bfe7d01bb0d57a1f20ce6ce9f89 to your computer and use it in GitHub Desktop.
Delete all Kubernetes resources in all namespaces
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
kubens | while read line ; do | |
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found --namespace $line | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment