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/nginx-deployment nginx=nginx:1.16.1
508
-
3 kubectl set image deployment/nginx-deployment nginx=nginx:1.161
506
+
1 <none>
507
+
2 <none>
508
+
3 <none>
509
509
```
510
510
511
511
`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:
512
512
513
513
* Annotating the Deployment with `kubectl annotate deployment/nginx-deployment kubernetes.io/change-cause="image updated to 1.16.1"`
514
514
* Manually editing the manifest of the resource.
515
+
* Using tooling that sets the annotation automatically.
516
+
517
+
{{< note >}}
518
+
In older versions of Kubernetes, you could use the `--record` flag with kubectl commands to automatically populate the `CHANGE-CAUSE` field. This flag is deprecated and will be removed in a future release.
519
+
{{< /note >}}
515
520
516
521
2. To see the details of each revision, run:
517
522
```shell
@@ -523,7 +528,6 @@ Follow the steps given below to check the rollout history:
523
528
deployments "nginx-deployment" revision 2
524
529
Labels: app=nginx
525
530
pod-template-hash=1159050644
526
-
Annotations: kubernetes.io/change-cause=kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
527
531
Containers:
528
532
nginx:
529
533
Image: nginx:1.16.1
@@ -584,7 +588,6 @@ Follow the steps given below to rollback the Deployment from the current version
0 commit comments