Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 624 Bytes

File metadata and controls

18 lines (12 loc) · 624 Bytes

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