Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save briandenicola/f149d59acb3d44e2590e527234365fea to your computer and use it in GitHub Desktop.
Save briandenicola/f149d59acb3d44e2590e527234365fea to your computer and use it in GitHub Desktop.
Kubectl to Roll Deployment via REST API
kubectl proxy
curl -X PATCH -d "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}" -H 'Content-Type: application/strategic-merge-patch+json' http://localhost:8001/apis/apps/v1/namespaces/default/deployments/demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment