Search⌘ K

Volumes and Handling Failures

Explore how StatefulSets in Kubernetes use volumes to maintain persistent state for Pods. Understand how volumes are linked to individual Pods yet remain decoupled to survive failures and scaling changes. Learn how the StatefulSet controller manages Pod failures and the complexities of node failure recovery to prevent data loss or corruption.

We'll cover the following...

StatefulSets and volumes

Volumes are an important part of a StatefulSet Pod’s sticky ID (state).

When StatefulSets create Pods, they also create any volumes the Pods require. To help with this, they give the volumes special names that Kubernetes uses to connect them to the correct Pods. The following figure shows a StatefulSet called tkb-sts requesting three Pods, each with a single volume. You can see how ...