<p>Is there a way to limit the number os replicas per node in Kubernetes? I found some info about Spreading Constraints but didn't understand if this is possible.</p>

<p>Example: I want to have only 1 replica per node on the cluster.</p>

<p>I know that K8S automatically balances the replicas spreading across the nodes, but I want to enforce a specific limit in each node.</p>

<p>Is this possible?</p>

Hugo Marques
<p>The scheduler has many ways to just about everything but in the particular case of 1 replica per node you can use a <code>required</code> mode anti-affinity.</p>
