0
0
Kubernetesdevops~5 mins

Deployment status and history in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What command shows the current status of a Kubernetes deployment?
Use kubectl rollout status deployment/<deployment-name> to see the current status of a deployment.
Click to reveal answer
beginner
How can you view the history of revisions for a Kubernetes deployment?
Use kubectl rollout history deployment/<deployment-name> to list all past revisions of the deployment.
Click to reveal answer
beginner
What does the command kubectl rollout undo deployment/<deployment-name> do?
It rolls back the deployment to the previous revision, undoing the last change.
Click to reveal answer
intermediate
What information does kubectl rollout history provide about each revision?
It shows the revision number and the change cause if annotated, helping track what changed in each deployment update.
Click to reveal answer
beginner
Why is monitoring deployment status important in Kubernetes?
It helps ensure your application updates are successful and lets you quickly detect and fix problems during rollout.
Click to reveal answer
Which command shows the rollout status of a deployment named 'webapp'?
Akubectl rollout status deployment/webapp
Bkubectl get pods webapp
Ckubectl describe deployment webapp
Dkubectl rollout history deployment/webapp
How do you see all past revisions of a deployment?
Akubectl rollout history deployment/&lt;name&gt;
Bkubectl get deployment --history
Ckubectl describe deployment --revisions
Dkubectl rollout status deployment/&lt;name&gt;
What happens when you run kubectl rollout undo deployment/myapp?
AIt shows the deployment status
BIt deletes the deployment
CIt updates the deployment to the latest image
DIt rolls back to the previous deployment revision
Which command helps you track what changed in each deployment revision?
Akubectl logs deployment/&lt;name&gt;
Bkubectl rollout history deployment/&lt;name&gt;
Ckubectl get pods
Dkubectl describe pod
Why should you monitor deployment status during updates?
ATo increase cluster size
BTo delete old pods
CTo ensure updates succeed and catch errors early
DTo change container images manually
Explain how to check the status and history of a Kubernetes deployment and why it matters.
Think about commands to see current state and past changes, plus why watching updates is useful.
You got /4 concepts.
    Describe the steps to rollback a Kubernetes deployment to a previous version.
    Recall commands for history, undo, and status checking.
    You got /3 concepts.