What’s the difference between if it’s - kubectl scale with deployment vs scaling . . .

Jimmy Malhan:
what’s the difference between if it’s - kubectl scale with deployment vs scaling with statefulsets?

Franklin Ashok Pulltikurthi:
The main difference is, if you scale a deployment, for example to 2 replicas, two replicas will be created at the same time, however in a statefulsets, it will create second replica only when the first one is created and the state is running. For any reason the first replica fails it wont create more

unnivkn:
If needed you can scale the replicas together in sts, by using Parallelism

unnivkn:
Parallel Pod Management
Parallel pod management tells the StatefulSet controller to launch or terminate all Pods in parallel, and to not wait for Pods to become Running and Ready or completely terminated prior to launching or terminating another Pod. This option only affects the behavior for scaling operations. Updates are not affected