<p>All the times I scale a statefulset the pods are started in different nodes.</p>

<p>I have tried to find documentation about this but I have not found anything.</p>

<p>Is this a default behavior of the Statefulset objects?</p>

<p>Thank you.</p>

Jxadro
<p>You can control the scheduling of your pods by editing the affinity of the statefulset. (<a href="https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity</a>) </p>

<p>But be aware that running all instances of a statefulset on one node causes an outage of your service if that node fails/dies. I would absolutely not recommend to schedule all instances of a statefulset on a single node.</p>
