Skip to content

Instantly share code, notes, and snippets.

@esolitos
Created August 12, 2019 12:57
Show Gist options
  • Save esolitos/0c6e8d7a8658a48c1c6bd21210af07ca to your computer and use it in GitHub Desktop.
Save esolitos/0c6e8d7a8658a48c1c6bd21210af07ca to your computer and use it in GitHub Desktop.
kubectl force pod rotations
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