Change StatefulSet replica count.
Section: StatefulSets and DaemonSets
Scale statefulset
bash
bash
kubectl scale statefulset postgres --replicas=3 -n dataExplanation
Change StatefulSet replica count.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing StatefulSets and DaemonSets