Skip to content
Permalink
Browse files

add rollout history and back to specific revision (#15818)

add rollout history and back to specific revision
  • Loading branch information...
cloudmelon authored and k8s-ci-robot committed Aug 16, 2019
1 parent 7fc8050 commit 7796f3cea6d9bec5a47ded2c32ec770480ba6baf
Showing with 3 additions and 0 deletions.
  1. +3 −0 content/en/docs/reference/kubectl/cheatsheet.md
@@ -205,9 +205,12 @@ As of version 1.11 `rolling-update` have been deprecated (see [CHANGELOG-1.11.md

```bash
kubectl set image deployment/frontend www=image:v2 # Rolling update "www" containers of "frontend" deployment, updating the image
kubectl rollout history deployment/frontend # Check the history of deployments including the revision
kubectl rollout undo deployment/frontend # Rollback to the previous deployment
kubectl rollout undo deployment/frontend --to-revision=2 # Rollback to a specific revision
kubectl rollout status -w deployment/frontend # Watch rolling update status of "frontend" deployment until completion
# deprecated starting version 1.11
kubectl rolling-update frontend-v1 -f frontend-v2.json # (deprecated) Rolling update pods of frontend-v1
kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2 # (deprecated) Change the name of the resource and update the image

0 comments on commit 7796f3c

Please sign in to comment.
You can’t perform that action at this time.