Skip to content
masterclass Buddy

Kubernetes · Resource

StatefulSet

A StatefulSet manages Pods that keep stable names, network identities, and storage. It also provides ordered creation, scaling, and rolling updates for stateful workloads.

Last updated

Since
v1.26 for the first availability of configurable start ordin

Syntax

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: <name>
spec:
  serviceName: <headless-service>
  selector: <label-selector>
  template: <pod-template>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Deployment
  • ReplicaSet
  • Headless Service
  • PersistentVolumeClaim
  • PersistentVolume
  • Pod
  • Pod Management Policies
  • Rolling Updates

Source: StatefulSets | Kubernetes. Checked 2026-11-03.