Created
June 22, 2020 03:23
-
-
Save briandenicola/f149d59acb3d44e2590e527234365fea to your computer and use it in GitHub Desktop.
Kubectl to Roll Deployment via REST API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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