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

Drive workload node selection via workload-specific node labels? #617

Open
seaneagan opened this issue Jun 18, 2021 · 4 comments
Open

Drive workload node selection via workload-specific node labels? #617

seaneagan opened this issue Jun 18, 2021 · 4 comments
Assignees
Milestone

Comments

@seaneagan
Copy link
Contributor

Problem description (if applicable)

In Airship 1 we were driving node selection via workload-specific labels applied to nodes, so that nodeSelectors rarely needed to be changed:
https://github.com/airshipit/treasuremap/blob/v1.9/global/profiles/host/cp.yaml#L57-L116
https://github.com/airshipit/treasuremap/blob/v1.9/global/profiles/host/dp.yaml#L57-L64

Proposed change

Is that the same approach we want to take with treasuremap in Airship 2? This should be enabled by a combination of the sync labeller and host generation label support: https://review.opendev.org/c/airship/airshipctl/+/797130

Assuming the same answer for sub-clusters, at least for the workloads being provided by the sub-cluster provider?

@seaneagan
Copy link
Contributor Author

I think another advantage is that an operator can easily manipulate these labels to move a particular workload off a particular node where it is having issues. I guess with the sync labeller this could still work but the changes would need to be made to the BMH instead of the kubernetes node directly, so that the changes don't get undone.

@jezogwza
Copy link
Contributor

jezogwza commented Jun 23, 2021

Let's take an approach where we have a label catalog, that defines groups of labels. In the hosts.yaml we will refer to the label group. And the host generator will expand appropriately.

@drewwalters96
Copy link
Contributor

I'll work this one

@drewwalters96 drewwalters96 self-assigned this Jul 12, 2021
@drewwalters96 drewwalters96 transferred this issue from airshipit/treasuremap Jul 20, 2021
@drewwalters96
Copy link
Contributor

Transferred to airshipctl, as this feature will be included in the BaremetalHost generator function.

@lb4368 lb4368 added this to the Future milestone Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants