Rollout

When new version of software is deployed in deployment that’s a called rollout. Each rollout gives new Revision.

kubectl rollout status <deployment>

Above command gives the status of replicas getting updated in rollout.

To see the history of revisions we can use command,

kubectl rollout history <deployment>

For example,

➤ k rollout history deployment nginx
deployment.apps/nginx
REVISION  CHANGE-CAUSE
3         <none>
6         kubectl set image deployment nginx nginx=nginx:1.17 --record=true
7         kubectl edit deployment nginx --record=true