kubernetes-sigs / descheduler

Descheduler for Kubernetes
https://sigs.k8s.io/descheduler
Apache License 2.0
4.23k stars 645 forks source link

Implement `namespaceSelector` for Pod (anti)affinity when considering NodeFit #1361

Open logyball opened 3 months ago

logyball commented 3 months ago

This is a follow up from the comment here, which contains a ton more context.

Is your feature request related to a problem? Please describe. For the nodeFit feature, it has begun considering pod anti-affinity when determining if a pod fits on a node. Pod anti-affinity can include the namespace, but it can also utilize namespaceSelector to find namespaces logically rather than explicitly.

Describe the solution you'd like

Also consider namespaces matched by namespaceSelector.

Describe alternatives you've considered

Do not implement this feature. Thus far it hasn't created a problem, as I believe namespaceSelectors are not widely used.

What version of descheduler are you using?

descheduler version: v0.28.1

k8s-triage-robot commented 4 weeks ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale