Lesson 3.3

Rolling updates and rollbacks

A rolling update replaces pods gradually, controlled by how many extra pods may exist and how many may be missing.

5mIntermediate7.5k students

Overview

Replacing pods without dropping requests

A rolling update replaces pods gradually, controlled by how many extra pods may exist and how many may be missing. Those two numbers decide whether an update is fast or safe.

Graceful shutdown is where zero-downtime deploys are usually lost. A pod removed from the service still has in-flight requests, so it needs a pre-stop delay and a process that finishes work before exiting.

Deployment history makes rollback a single command. Practise it before you need it, because the first time should not be during an incident.

In this lesson you will:

  • Tune surge and unavailability
  • Drain connections before a pod stops
  • Roll back a bad release quickly

Resources

Previous Lesson
Next Lesson
Rolling updates and rollbacks — Kubernetes for Application Developers — Vertex