diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates.go b/plugin/pkg/scheduler/algorithm/predicates/predicates.go index eff7cc5f4a9..0d1d80eb7ba 100644 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates.go @@ -737,6 +737,11 @@ func NewServiceAffinityPredicate(podLister algorithm.PodLister, serviceLister al // the same service are running on nodes with // the exact same ServiceAffinity.label values). // +// For example: +// If the first pod of a service was scheduled to a node with label "region=foo", +// all the other subsequent pods belong to the same service will be schedule on +// nodes with the same "region=foo" label. +// // Details: // // If (the svc affinity labels are not a subset of pod's label selectors )