skip to content
Alvin Lucillo

Record rollout history for set image

/ 1 min read

By default, no rollout history is created if you set an image. If you need a history recorded, use --record.

kubectl set image deployment/webapp web-container=nginx:1.19 --record
kubectl rollout history deployment/webapp
REVISION  CHANGE-CAUSE
1         kubectl set image deployment/webapp web-container=nginx:1.19 --record=true