Kubernetes 101 : Scaling a stateful set
The below diagram represents the scaling down of a statefulset named db1:
We can tell from the names of our pods that they are managed by a statefulset is named db1.
We look for that statefulset in our system using the below:
Then we can scale out statefulset down to two pods using the below command:
We check to see if the statefulset was successfully scaled down to two pods using the following:
The "--record" parameter created an annotation as we see using the "kubectl describe" command: