Skip to content

when using scheduler and serviceAffinity, unexpected node placements occur #1727

@thoraxe

Description

@thoraxe

Given the following scheduler configuration:

{
  "predicates" : [
    {"name" : "PodFitsResources"},
    {"name" : "PodFitsPorts"},
    {"name" : "NoDiskConflict"},
    {"name" : "Region", "argument" : {"serviceAffinity" : { "label" : "region"}}}
  ],"priorities" : [
    {"name" : "LeastRequestedPriority", "weight" : 1},
    {"name" : "ServiceSpreadingPriority", "weight" : 1},
    {"name" : "Zone", "weight" : 1, "argument" : {"serviceAntiAffinity" : { "label" : "zone" }}}
  ]
}

When creating a pod with a NodeSelector requesting a specific region, pods are placed in the wrong region.

They also fail to start, and I'm not sure if that's related or unrelated.

@abhgupta is aware, this issue is for him.

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions