DevOps in K8s — PodTopologySpread

<blockquote> <p><em>N</em><strong><em>ote, full &ldquo;DevOps in K8s&rdquo; mind map is available at: &ldquo;</em></strong><a href="https://github.com/metaleapca/metaleap-devops-in-k8s/blob/main/metaleap-devops-in-k8s.pdf" rel="noopener ugc nofollow" target="_blank"><strong><em>DevOps in K8s Mind Map</em></strong></a><strong><em>&rdquo;</em></strong></p> </blockquote> <h1>What is PodTopologySpread?</h1> <p><code>PodTopologySpread</code>&nbsp;(formerly known as &quot;EvenPodsSpread&quot;) is a scheduling feature in K8s that aims to achieve a balanced distribution of pods across different topologies. Common examples are nodes, racks, zones, or even custom-defined domains that can be labeled within a cluster.</p> <p>The purpose of&nbsp;<code>PodTopologySpread</code>&nbsp;is to ensure that the workload is not concentrated in a few nodes or zones but instead is evenly distributed.</p> <p>An example of&nbsp;<code>PodTopologySpread</code>&nbsp;definition looks like:</p> <p><a href="https://tonylixu.medium.com/devops-in-k8s-podtopologyspread-e5d583571837"><strong>Website</strong></a></p>