0
0
Kubernetesdevops~5 mins

Rollback to previous version in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a rollback in Kubernetes?
A rollback in Kubernetes means returning a deployment to a previous stable version when the current version has issues.
Click to reveal answer
beginner
Which command rolls back a deployment to its previous version?
kubectl rollout undo deployment/
Click to reveal answer
intermediate
How can you check the rollout history of a deployment?
Use the command: kubectl rollout history deployment/ to see past versions and revisions.
Click to reveal answer
intermediate
What happens if you run 'kubectl rollout undo' without specifying a revision?
Kubernetes rolls back the deployment to the immediately previous revision by default.
Click to reveal answer
intermediate
How do you rollback to a specific revision number?
Use: kubectl rollout undo deployment/ --to-revision=
Click to reveal answer
What command shows the rollout status of a deployment?
Akubectl get pods
Bkubectl rollout status deployment/<deployment-name>
Ckubectl describe deployment
Dkubectl logs deployment/<deployment-name>
What does 'kubectl rollout undo deployment/myapp' do?
ARolls back 'myapp' deployment to the previous version
BDeletes the 'myapp' deployment
CUpdates 'myapp' deployment to the latest version
DShows logs of 'myapp' deployment
How do you see all previous revisions of a deployment?
Akubectl rollout history deployment/<deployment-name>
Bkubectl get revisions deployment/<deployment-name>
Ckubectl describe pods
Dkubectl get deployments
If you want to rollback to revision 3, which command should you use?
Akubectl undo deployment/<deployment-name> revision 3
Bkubectl rollback deployment/<deployment-name> revision=3
Ckubectl rollout undo deployment/<deployment-name> --to-revision=3
Dkubectl revert deployment/<deployment-name> 3
What is the default behavior of 'kubectl rollout undo' if no revision is specified?
ARollback to the latest revision
BRollback to the first revision
CNo rollback happens
DRollback to the previous revision
Explain how to rollback a Kubernetes deployment to a previous version and how to check its history.
Think about commands to undo and to see past versions.
You got /4 concepts.
    Describe the steps and commands to rollback to a specific revision number in Kubernetes.
    Focus on how to target a specific past version.
    You got /3 concepts.