0
0
Kubernetesdevops~10 mins

Rollback to previous version in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to rollback the deployment named 'webapp' to the previous revision.

Kubernetes
kubectl rollout undo deployment/[1]
Drag options to blanks, or click blank then click option'
Adatabase
Bfrontend
Cbackend
Dwebapp
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong deployment name.
Forgetting to specify 'deployment/' before the name.
2fill in blank
medium

Complete the command to rollback the deployment 'api-server' to revision 2.

Kubernetes
kubectl rollout undo deployment/api-server --to-revision=[1]
Drag options to blanks, or click blank then click option'
A2
B1
C3
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' instead of a revision number.
Using a revision number that does not exist.
3fill in blank
hard

Fix the error in the command to rollback the deployment 'frontend' to the previous revision.

Kubernetes
kubectl rollout undo [1] frontend
Drag options to blanks, or click blank then click option'
Areplicaset
Bdeployment
Cservice
Dpod
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pod' or 'service' instead of 'deployment'.
Omitting the resource type.
4fill in blank
hard

Fill both blanks to rollback the deployment 'backend' to revision 3 and watch the rollout status.

Kubernetes
kubectl rollout undo deployment/[1] --to-revision=[2] && kubectl rollout status deployment/backend
Drag options to blanks, or click blank then click option'
Abackend
Bfrontend
C3
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong deployment name or revision number.
Forgetting to watch rollout status after rollback.
5fill in blank
hard

Fill all three blanks to rollback the deployment 'api' to revision 1, then check rollout history.

Kubernetes
kubectl rollout undo deployment/[1] --to-revision=[2] && kubectl rollout history deployment/[3]
Drag options to blanks, or click blank then click option'
Aapi
B1
Capi-server
Dbackend
Attempts:
3 left
💡 Hint
Common Mistakes
Using different deployment names in rollback and history commands.
Using invalid revision numbers.