<p>I have three nodes and have pod replica 9. When I am trying to deploy,  Pods are unevenly scheduled on nodes.</p>
<p>How can I make sure that Pods are evenly scheduled on three nodes?</p>

Manjunath reddy
<p>You should configure <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/" rel="nofollow noreferrer">topology spread constraints</a>. These control how pods are scheduled across your Kubernetes cluster based on regions, zones, nodes.</p>
<p>For spreading across nodes, you could use <em>maxSkew</em> (maxSkew describes the degree to which Pods may be unevenly distributed)</p>
<pre><code>spec:
  topologySpreadConstraints:
    - maxSkew: 1
      topologyKey: node
      whenUnsatisfiable: DoNotSchedule
</code></pre>
