ruk·si

Kubernetes
StatefulSet

Updated at 2018-12-31 00:52

StatefulSet is a controller to manage stateful applications. Similar to Deployment controller but maintains a sticky identity for each of the pods.

StatefulSets require a persistent volume to function. Scaling or deleting a node will not delete the volume. This also the main reason you would use a StatefulSet.

StatefulSets require a headless service for pod network identity. User is responsible of creating these services.

Sources