Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mati865/9a5a1f396272988f232c46f8de53fda7 to your computer and use it in GitHub Desktop.
Save mati865/9a5a1f396272988f232c46f8de53fda7 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