Resolve formatting issue and add example for node affinity example.

This commit is contained in:
Robert Van Voorhees 2021-10-24 06:06:43 -04:00
parent b7e1c2a041
commit 489e938f1c
No known key found for this signature in database
GPG Key ID: 47FE04149539FC4F
1 changed files with 33 additions and 31 deletions

View File

@ -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.
### Example: TopologySpreadConstraints with NodeAffinity
Suppose you have a 5-node cluster ranging from zoneA to zoneC:
{{<mermaid>}}