Rolling Updates & Rollbacks

Difficulty: Intermediate

Question

How do you perform a zero-downtime update and a rollback in Kubernetes?

Answer

Updates are handled by the Deployment controller using a RollingUpdate strategy. Rollbacks are performed via `kubectl rollout undo`, which reverts to a previous revision maintained in history.

Concepts covered

RollingUpdate, Rollback, Strategy, Revision History