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?
✗ Incorrect
The command 'kubectl rollout status deployment/' shows the current rollout status.
What does 'kubectl rollout undo deployment/myapp' do?
✗ Incorrect
This command rolls back the deployment named 'myapp' to its previous version.
How do you see all previous revisions of a deployment?
✗ Incorrect
The 'kubectl rollout history' command lists all past revisions of a deployment.
If you want to rollback to revision 3, which command should you use?
✗ Incorrect
The correct syntax to rollback to a specific revision is using '--to-revision' flag.
What is the default behavior of 'kubectl rollout undo' if no revision is specified?
✗ Incorrect
By default, it rolls back to the immediately 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.