How do you rollback deployment d12 to a specific revision?
Experience Level: Senior
Tags: Kubernetes
Answer
Run the following command to find the existing revisions:
kubectl rollout history deploy d12
Then run the following command to rollback to a specific revision:
kubectl rollout undo deploy d12 --to-revision=3
Related Kubernetes job interview questions
On which level can you configure securityContext field in Kubernetes?
Kubernetes SeniorHow do you convert a Kubernetes pod to a deployment?
Kubernetes SeniorHow do you display a history of Kubernetes deployment d12 in namespace ns2?
Kubernetes SeniorHow do you move a pod between namespaces in Kubernetes?
Kubernetes SeniorHow do you create a Kubernetes pod using the busybox image that will execute two commands after the container starts?
Kubernetes Senior