From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

StatefulSet

StatefulSet

- Another way to run applications is by using StatefulSet. So what is so special about StatefulSet? Well, first that it is something that you use for stateful applications. These applications need the identity of the Pods to be maintained even after the restarted because otherwise, they can't pick up the state. This is useful for applications like databases. And generically, StatefulSet comes in when one of the following is required: stable and unique network identifiers; and stable and persistent storage; ordered and graceful deployment and scaling, and also ordered and automated rolling updates. Setting up a StatefulSet is a little bit complicated, but to make it easier, you can use helm charts if you want. In the next style lesson, you will learn how to work with Helm. If you want to work with StatefulSet, there's a couple of things to consider. First is storage. Storage must be provisioned by a persistent volume and it'll be claimed by the StatefulSet VolumeClaimTemplate, which…

Contents