To create a deployment of "nginx" pods, we use the below command:
To get the status of our deployment, we use the below command:
We could update the image of our "nginx" deployment to the "nginx:1.21" version using the below command:
Then we could see the "--record" in the rollout history:
when we rollback, we go back to the "before" state.
If we want to go back to a certain revision as mentioned in the output of the "rollout history" command, we would need to mention the revision number, as below: