Skip to content

Instantly share code, notes, and snippets.

@xandout
Created April 8, 2020 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xandout/c3050db07eb8258a1dd7861487c7bf7a to your computer and use it in GitHub Desktop.
Save xandout/c3050db07eb8258a1dd7861487c7bf7a to your computer and use it in GitHub Desktop.
PodBoom - A way to bounce a K8S deployment.
#/bin/bash
# Add this to your bashrc or equivalent
podboom(){
TO_BOOM=${1:-your-deployment}
kubectl patch deployments ${TO_BOOM} -p '{"spec": {"template": {"metadata": { "labels": { "redeployed": "by-'$(whoami)'"}}}}}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment