Skip to content

Latest commit

 

History

History

rollback-a-deployment-in-k8s

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Rollback a Deployment in Kubernetes

Problem

This morning the Nautilus DevOps team rolled out a new release for one of the applications. Recently one of the customers logged a complaint which seems to be about a bug related to the recent release. Therefore, the team wants to rollback the recent release.

There is a deployment named nginx-deployment; roll it back to the previous revision.

Note: The kubectl utility on jump_host has been configured to work with the kubernetes cluster.

Solution

kubectl rollout history deployment/nginx-deployment
kubectl rollout undo deployment/nginx-deployment