Skip to content

Instantly share code, notes, and snippets.

@yuriburger
Last active May 9, 2019 08:00
Show Gist options
  • Save yuriburger/ad83d16a98d44603faee705b73deb8db to your computer and use it in GitHub Desktop.
Save yuriburger/ad83d16a98d44603faee705b73deb8db to your computer and use it in GitHub Desktop.
[trigger update] Trigger a deployment by patching a label #kubernetes
// vim: syntax=bash
k patch deployment <servicename> -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment