Merge pull request #30210 from voor/pod-topology-spread-constraints-fix-formatting-example

Pod Topology Spread Constraints: Resolve formatting issue and add example for node affinity example.
This commit is contained in:
Kubernetes Prow Robot
2021-12-05 16:36:32 -08:00
committed by GitHub
@@ -234,6 +234,8 @@ To overcome this situation, you can either increase the `maxSkew` or modify one
The scheduler will skip the non-matching nodes from the skew calculations if the incoming Pod has `spec.nodeSelector` or `spec.affinity.nodeAffinity` defined. The scheduler will skip the non-matching nodes from the skew calculations if the incoming Pod has `spec.nodeSelector` or `spec.affinity.nodeAffinity` defined.
### Example: TopologySpreadConstraints with NodeAffinity
Suppose you have a 5-node cluster ranging from zoneA to zoneC: Suppose you have a 5-node cluster ranging from zoneA to zoneC:
{{<mermaid>}} {{<mermaid>}}