You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2 kubectl set image deployment.v1.apps/nginx-deployment nginx=nginx:1.16.1
485
+
3 kubectl set image deployment.v1.apps/nginx-deployment nginx=nginx:1.161
491
486
```
492
487
493
488
`CHANGE-CAUSE` is copied from the Deployment annotation `kubernetes.io/change-cause` to its revisions upon creation. You can specify the`CHANGE-CAUSE` message by:
494
489
495
490
* Annotating the Deployment with `kubectl annotate deployment.v1.apps/nginx-deployment kubernetes.io/change-cause="image updated to 1.16.1"`
496
-
* Append the `--record` flag to save the `kubectl`command that is making changes to the resource.
497
491
* Manually editing the manifest of the resource.
498
492
499
493
2. To see the details of each revision, run:
@@ -506,7 +500,7 @@ Follow the steps given below to check the rollout history:
506
500
deployments "nginx-deployment" revision 2
507
501
Labels: app=nginx
508
502
pod-template-hash=1159050644
509
-
Annotations: kubernetes.io/change-cause=kubectl set image deployment.v1.apps/nginx-deployment nginx=nginx:1.16.1 --record=true
503
+
Annotations: kubernetes.io/change-cause=kubectl set image deployment.v1.apps/nginx-deployment nginx=nginx:1.16.1
510
504
Containers:
511
505
nginx:
512
506
Image: nginx:1.16.1
@@ -567,7 +561,7 @@ Follow the steps given below to rollback the Deployment from the current version
0 commit comments