Skip to content

Instantly share code, notes, and snippets.

@yannick
Created November 16, 2019 12:03
Show Gist options
  • Save yannick/5fb25478204260422051a5d9715970e4 to your computer and use it in GitHub Desktop.
Save yannick/5fb25478204260422051a5d9715970e4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
kubectl patch deployment $1 -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}"
kg deployment $1 -o yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment