mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-27 08:37:36 +00:00
fix: comment on preferred PodAntiAffinity
This commit is contained in:
@@ -3213,8 +3213,8 @@ type PodAntiAffinity struct {
|
||||
// most preferred is the one with the greatest sum of weights, i.e.
|
||||
// for each node that meets all of the scheduling requirements (resource
|
||||
// request, requiredDuringScheduling anti-affinity expressions, etc.),
|
||||
// compute a sum by iterating through the elements of this field and adding
|
||||
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
|
||||
// compute a sum by iterating through the elements of this field and subtracting
|
||||
// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
|
||||
// node(s) with the highest sum are the most preferred.
|
||||
// +optional
|
||||
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm
|
||||
|
||||
@@ -3597,8 +3597,8 @@ type PodAntiAffinity struct {
|
||||
// most preferred is the one with the greatest sum of weights, i.e.
|
||||
// for each node that meets all of the scheduling requirements (resource
|
||||
// request, requiredDuringScheduling anti-affinity expressions, etc.),
|
||||
// compute a sum by iterating through the elements of this field and adding
|
||||
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
|
||||
// compute a sum by iterating through the elements of this field and subtracting
|
||||
// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
|
||||
// node(s) with the highest sum are the most preferred.
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
|
||||
Reference in New Issue
Block a user