First things first: before going stateless, make sure this is appropriate for your architecture. Although we have talked about the benefits of keeping state client-side in the form of signed tokens, there are use cases where this is not the best option. Item 10 in10 Things You Should Know ...
Explains why we need the stateful set, MySQL example:Kubernetes Tutorial: Why do you need StatefulSets in Kubernetes? Explains difference between regular pod deploy (stateless) and the stateful set deploy, MySQL example:Kubernetes StatefulSet simply explained | Deployment vs StatefulSet The two main c...