Created
October 30, 2018 07:55
-
-
Save Ivan-Feofanov/b1acdd63bb9a7a3d84a38e98e5cc52bb to your computer and use it in GitHub Desktop.
reload kubernetes deployment
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
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