Complete the command to rollback the deployment named 'webapp' to the previous revision.
kubectl rollout undo deployment/[1]The command kubectl rollout undo deployment/webapp rolls back the 'webapp' deployment to its previous version.
Complete the command to rollback the deployment 'api-server' to revision 2.
kubectl rollout undo deployment/api-server --to-revision=[1]Using --to-revision=2 rolls back the deployment to revision 2.
Fix the error in the command to rollback the deployment 'frontend' to the previous revision.
kubectl rollout undo [1] frontendThe correct resource type to rollback is deployment. Pods, services, and replicasets cannot be rolled back this way.
Fill both blanks to rollback the deployment 'backend' to revision 3 and watch the rollout status.
kubectl rollout undo deployment/[1] --to-revision=[2] && kubectl rollout status deployment/backend
The command rolls back the 'backend' deployment to revision 3 and then watches its rollout status.
Fill all three blanks to rollback the deployment 'api' to revision 1, then check rollout history.
kubectl rollout undo deployment/[1] --to-revision=[2] && kubectl rollout history deployment/[3]
This command rolls back the 'api' deployment to revision 1 and then shows its rollout history.