 What is an aStateFullSet? An aStateFullSet provides a well-known unique identity to the pod instead of a random one. AStateFullSet are useful when we need to know beforehand the pod name. Usually, stateful sets are useful when we are creating a database cluster in Kubernetes, where we need to specify which pod names belong to that database cluster. To create an aStateFullSet, we need to use the kind of aStateFullSet, which is pretty similar as a deployment with more or less the same fields. And as you can see here, we set it up to the labels, replicas, and the container image that you want to use. Now, let's deploy this aStateFullSet. Notice that the replicas is one, which means that it's going to create only one pod. We're going to keep color, get pod. You can see there is one pod. And what I want you to notice here is that the pod is named the name that we set in the deployment. Notice that the name was a pod with a stateful set. Minus zero, because it's the first instance. What's happened if I do keep color, scale, stateful set, and set the replicas to three? Now I'm just scaling up my stateful set. But the key point here is that if I do keep color, get pod, you see that it's scaling in order. And it's setting always a predictable name. The pod for stateful set zero. Then the second replica is the minus one. And the next one is the minus two. So it's no random name anymore, but just an incremental number. What's happened now? If I do keep color scale to two, what is the first one that's going to die? If I do keep color, get pod. You'll see that the one that's terminating is the number two. Because when we scale up, we make it in order. So it's zero, then one, then two, then three. And when we scale down, it's in the rarest order. So in this case, it's two, then it's one, and then it's zero. Thanks for watching and don't forget to like the video and subscribe to the channel.