Details

StatefulSets are designed to run services which require predictable hostnames and IP addresses that don’t change when Pod is moved/deleted/recreated. All pods running in a StatefulSet require a storage which is defined by PersistentVolumeClaim objects.

Most database clusters and other services which create some kind of group of instances to provide redundancy, high-availability and greater performance, work in StatefulSet.