Skip to content

Instantly share code, notes, and snippets.

@PLaRoche PLaRoche/
Created May 23, 2018

What would you like to do?
# 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
You can’t perform that action at this time.