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

Support complex node affinity in cluster spec #523

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

WanzenBug
Copy link
Member

Use the nodeAffinity, like one would set it on pods to allow more complex deployment scenarios. We need to respect these settings when creating Satellites, but also when creating our own deployments.

Fixes #522

@WanzenBug WanzenBug force-pushed the complex-affinity branch 3 times, most recently from 84ea408 to fa32114 Compare November 17, 2023 10:52
@WanzenBug WanzenBug marked this pull request as ready for review November 17, 2023 10:52

Selects which nodes the LinstorSatelliteConfiguration should apply to. If empty, the configuration applies to all nodes.

When this is used together with `.spec.nodeAffinity`, both need to match in order for the configuration to apply to a
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When this is used together with `.spec.nodeAffinity`, both need to match in order for the configuration to apply to a
When this is used together with `.spec.nodeSelector`, both need to match in order for the configuration to apply to a

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've got 🦅 👀

😄

@JoelColledge
Copy link
Collaborator

The rest all looks good 👍

Use the nodeAffinity, like one would set it on pods to allow more complex
deployment scenarios. We need to respect these settings when creating
Satellites, but also when creating our own deployments.

For consistency, the same options are also available on sht satellite
configuration resources.

Signed-off-by: Moritz "WanzenBug" Wanzenböck <[email protected]>
@WanzenBug WanzenBug merged commit 542a188 into v2 Nov 20, 2023
4 checks passed
@WanzenBug WanzenBug deleted the complex-affinity branch November 20, 2023 09:13
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

Successfully merging this pull request may close these issues.

Adding support "nodeAffinity" to LinstorCluster config
2 participants