Advanced|23 hours|40 lessons

Running Databases and Stateful Systems on Kubernetes

Operating stateful workloads on Kubernetes: the operator pattern and its failure modes, CSI and the volume lifecycle, failover and leader election, consistent backups and point in time recovery, volume expansion and cross cluster migration, and the day to day of running a database somebody depends on. Lifetime updates included.

Text-based, no videos
9 modules, 40 lessons
Lifetime access

What you'll learn

Why a stateful pod cannot move, and what that removes from the scheduler
What a StatefulSet actually guarantees, and the longer list of things it does not
The operator pattern: what it adds, how to evaluate one, and why it is a failure domain you chose
CSI end to end, from provision through attach to mount, and where each step stalls
Failover and leader election, and what prevents two primaries
Why a volume snapshot is not a database backup, and what a consistent one requires
Point in time recovery, and the write log you have to have been keeping
Volume expansion, storage class migration, and moving a database between clusters
Tenant isolation for databases, and what the tenant distribution decides
The signals that predict a stateful incident rather than reporting one

Curriculum

9 modules · 40 lessons
01

What Makes Stateful Different

Pod identity bound to a volume in a zone, what a StatefulSet actually promises, and the failure modes that have no stateless equivalent.

4 lessons
02

The Operator Pattern for Stateful Software

What an operator adds beyond a StatefulSet, how to evaluate one before adopting it, and the fact that it is a failure domain you chose.

6 lessons
03

CSI and the Volume Lifecycle

The plugin split, the lifecycle from provision to mount, topology binding, and what access modes actually mean.

5 lessons
04

Running a Database

Sizing, failover, connections, replicas, schema changes and version upgrades, on a workload that cannot simply be restarted.

6 lessons
05

Backup, Restore, and Recovery

Why a volume snapshot is not a database backup, consistent backups, point in time recovery, and rehearsing the restore.

5 lessons
06

Data Lifecycle Operations

Expansion, migration between classes and clusters, snapshots as tools, and decommissioning with evidence.

5 lessons
07

Multi-Tenancy and Isolation

Shared storage contention, per-tenant against shared databases, resource isolation, and credentials that rotate.

4 lessons
08

Operating It Day to Day

The signals that matter, capacity you can see coming, the slow degradations, and a runbook someone can follow at three in the morning.

4 lessons
09

Capstone

A full stateful platform designed end to end, with the tradeoff stated for every decision.

1 lessons

About the Author

Sharon Sahadevan

Sharon Sahadevan

AI Infrastructure Engineer

Building production GPU clusters on Kubernetes. H100s, large-scale model serving, and end-to-end ML infrastructure across Azure and AWS.

10+ years designing cloud-native platforms with deep expertise in Kubernetes orchestration, GitOps (Argo CD), Terraform, and MLOps pipelines for LLM deployment.

Author of KubeNatives, a weekly newsletter read by 3,000+ DevOps and ML engineers for production insights on K8s internals, GPU scheduling, and model-serving patterns.

Ready to master this topic?

Start with the free preview lesson and see for yourself.