Posts

Showing posts with the label Kubernetes

Kubernetes 101 : - Scaling a Stateful set -

Image
The below diagram represents the scaling down of a  statefulset named  db1 : Before scaling down our statefulset , we check the pods and we see that there are three replicas: 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: Remark: The " --record " parameter created an annotation as we see using the " kubectl describe " command: