Skip to content

Instantly share code, notes, and snippets.

@Ivan-Feofanov
Created October 30, 2018 07:55
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 Ivan-Feofanov/b1acdd63bb9a7a3d84a38e98e5cc52bb to your computer and use it in GitHub Desktop.
Save Ivan-Feofanov/b1acdd63bb9a7a3d84a38e98e5cc52bb to your computer and use it in GitHub Desktop.
reload kubernetes deployment
DEPLOYMENT=$1
kubectl patch deployment $DEPLOYMENT -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"`date +'%s'`\"}}}}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment