Created
May 23, 2018 20:07
-
-
Save PLaRoche/81529243b4a62b128ce1b80fb19b1ed0 to your computer and use it in GitHub Desktop.
kcdr
This file contains 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
# Add to your bashrc or equivalent | |
# kcdr will force reload a deployment by re-annotating the metadata with the | |
# current timestamp. | |
function kcdr { | |
kubectl patch 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