Created
August 12, 2019 12:57
-
-
Save esolitos/0c6e8d7a8658a48c1c6bd21210af07ca to your computer and use it in GitHub Desktop.
kubectl force pod rotations
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
kubectl get po --all-namespaces --selector=name=varnish -o jsonpath='{range .items[*]}{@.metadata.namespace}{" "}{@.metadata.name}{"\n"}{end}' | xargs -n2 -- sh -c 'kubectl -n $1 delete po $2' sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment