Kubernetes: Difference between revisions
Line 325: | Line 325: | ||
==StatefulSets== | ==StatefulSets== | ||
[https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/ StatefulSets basics] | [https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/ StatefulSets basics]<br> | ||
Stateful sets are useful when you need a fixed number of pods with stable identities.<br> | Stateful sets are useful when you need a fixed number of pods with stable identities such as databases.<br> | ||
Pods created by stateful sets have a unique number suffix which allows you to query a specific pod.<br> | Pods created by stateful sets have a unique number suffix which allows you to query a specific pod.<br> | ||
Typically, you will want to use a headless service (i.e. without ClusterIP) to give local dns records to each service. | Typically, you will want to use a headless service (i.e. without ClusterIP) to give local dns records to each service. |