Support node selector for each profile #1486
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Is your feature request related to a problem? Please describe.
There are use cases such as to config
HighNodeUtilization
plugin with different threshold in different group of nodes, e.g. nodepools. However, most of the plugins only supports to filter pods through specific filters.Describe the solution you'd like
When dealing with nodes, it is the framework to decide which nodes can be the targets. And it is configured by a global
NodeSelector
. So the idea is to add a new arg intoProfile
. Nodes that passed the globalNodeSelector
will be filtered again by each profile'sNodeSelector
and then passed intopg.Balance()
orpg.Deschedule()
. However, this might change the way how you build plugins.Describe alternatives you've considered
For each plugin, add
NodeSelector
configuration to filter nodes passed into it.What version of descheduler are you using?
descheduler version: v0.26.0 and later
Additional context
The text was updated successfully, but these errors were encountered: