Skip to content
Opsfolk

Running applications, topic 11 of 61

StatefulSets

A database replica is not interchangeable with its neighbour: it has its own data and others must be able to find it by name. A StatefulSet gives each Pod a fixed ordinal name (db-0, db-1), a stable DNS name through a headless Service, and its own PersistentVolumeClaim that follows it when it is rescheduled.

Pods are created and updated in order. Running stateful systems on Kubernetes is harder than running stateless ones, and an operator often manages the StatefulSet for you.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress