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.
SubscribeRelated
DeploymentReplicaSetHeadless ServicePersistentVolumeClaimPersistentVolumePodPod Management PoliciesRolling Updates