Skip to content

Instantly share code, notes, and snippets.

@BrandonPotter
Last active February 21, 2020 01:20
Show Gist options
  • Save BrandonPotter/7e7ea2f77fab7755b5c847c1b8929590 to your computer and use it in GitHub Desktop.
Save BrandonPotter/7e7ea2f77fab7755b5c847c1b8929590 to your computer and use it in GitHub Desktop.
Force Kubernetes to pull latest container image in a deployment

Force Kubernetes to pull latest container image in a deployment

kubectl patch deployment DEPLOYMENT_NAME -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