You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/workloads/pods/pod-topology-spread-constraints.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,21 +168,21 @@ There are some implicit conventions worth noting here:
168
168
169
169
- If the incoming Pod has `spec.nodeSelector` or `spec.affinity.nodeAffinity` defined, nodes not matching them will be bypassed.
170
170
171
-
Suppose you have a 5-node cluster ranging from zoneA to zoneC:
171
+
Suppose you have a 5-node cluster ranging from zoneA to zoneC:
172
172
173
-
```
174
-
+---------------+---------------+-------+
175
-
| zoneA | zoneB | zoneC |
176
-
+-------+-------+-------+-------+-------+
177
-
| node1 | node2 | node3 | node4 | node5 |
178
-
+-------+-------+-------+-------+-------+
179
-
| P | P | P |||
180
-
+-------+-------+-------+-------+-------+
181
-
```
173
+
```
174
+
+---------------+---------------+-------+
175
+
| zoneA | zoneB | zoneC |
176
+
+-------+-------+-------+-------+-------+
177
+
| node1 | node2 | node3 | node4 | node5 |
178
+
+-------+-------+-------+-------+-------+
179
+
| P | P | P | | |
180
+
+-------+-------+-------+-------+-------+
181
+
```
182
182
183
-
and you know that "zoneC" must be excluded. In this case, you can compose the yaml as below, so that "mypod" will be placed onto "zoneB" instead of "zoneC". Similarly `spec.nodeSelector` is also respected.
183
+
and you know that "zoneC" must be excluded. In this case, you can compose the yaml as below, so that "mypod" will be placed onto "zoneB" instead of "zoneC". Similarly `spec.nodeSelector` is also respected.
0 commit comments