Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: NodeAffinity for Operators #840

Closed
davi5e opened this issue May 3, 2019 · 7 comments
Closed

Feature Request: NodeAffinity for Operators #840

davi5e opened this issue May 3, 2019 · 7 comments
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@davi5e
Copy link

davi5e commented May 3, 2019

It'd be really nice to use Pod/Node Affinity and Anti-affinity (or at least NodeSelector) to indicate where Pods created by the operator should be scheduled, possibly via a Subscription object.

@ecordell
Copy link
Member

ecordell commented May 9, 2019

Thanks for the suggestion!

Completely agree, and it's on our roadmap. For now there are ways to direct workloads at the namespace level that we've been relying on.

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 26, 2020
@openshift-ci-robot openshift-ci-robot added triage/unresolved Indicates an issue that can not or will not be resolved. and removed wontfix labels Feb 28, 2020
@stale
Copy link

stale bot commented Apr 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@ecordell
Copy link
Member

ecordell commented Jun 5, 2020

NodeSelector can be used in a subscription's spec.config block to direct workloads at runtime.

@ecordell ecordell closed this as completed Jun 5, 2020
@jmhopla
Copy link

jmhopla commented Mar 17, 2022

Hi!,
Not yet any option about nodeAffinity?, NodeSelector is a bit restricting in some use cases.
Thanks,

@dmesser
Copy link
Contributor

dmesser commented Mar 17, 2022

@jmhopla what is your use case for setting node affinity on the operator controller pods?

@jmhopla
Copy link

jmhopla commented Mar 17, 2022

Hi @dmesser

Thanks for your time.

The scenario is that we have a OCP cluster with workers in 2 zones or datacenter, we want to use a affinity of preferedbutnotrequired, so we define the pool where we want it to run normally (dc1) but in case of no resources available in dc1, we want that the operator in last effort have the possibility to run in dc2 without manual intervention.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

5 participants