Rolling back a Kubernetes Deployment

A Deployment revision needs to be reverted.

Problem

A Deployment revision needs to be reverted.

Cause

An environment variable change creates a new lab revision.

Solution

Inspect revision history. Roll back to the intended revision with a maintenance and recovery plan. Check rollout status and the environment variable list.

kubectl rollout history deployment/DEPLOYMENT -n NAMESPACE
kubectl rollout status deployment/DEPLOYMENT -n NAMESPACE

View solution source on GitHub