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
#DUMP yamls | |
kubectl get deploy | awk 'NR>1{ print $1 }' | xargs -I{} sh -c 'kubectl get deploy/$1 --export -o yaml > $1.yml' -- {} | |
#Rollout undo | |
kubectl get deploy | awk 'NR>1{ print $1 }' | xargs -I{} sh -c 'kubectl rollout undo deploy/$1' -- {} | |
#Delete all everything in a namespace | |
kubectl delete --all services,deployments,pods,ingress,secrets,configmaps | |
#Delete specific services |
NewerOlder