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

feat(CSI-295): add affinity for controller and separated nodeSelector for controller and node #377

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Oct 25, 2024

TL;DR

Added support for component-specific affinity and nodeSelector configurations in the CSI WekaFS plugin chart.

What changed?

  • Introduced new affinity and nodeSelector fields for both controller and node components.
  • Updated the controllerserver-statefulset.yaml and nodeserver-daemonset.yaml templates to use these new configurations.
  • Added a new _merge.tpl file with utility functions for merging configurations.
  • Modified the values.yaml file to include the new configuration options.

How to test?

  1. Update the chart with the new changes.
  2. Deploy the chart with custom affinity and nodeSelector configurations for controller and node components.
  3. Verify that the pods are scheduled according to the specified affinity and nodeSelector rules.
  4. Test both global and component-specific configurations to ensure they are applied correctly.

Why make this change?

This change provides more flexibility in deploying the WEKA CSI plugin. It allows users to define specific scheduling rules for controller and node components separately, which can be useful for optimizing resource allocation and meeting specific infrastructure requirements. The addition of the merge utility also improves the maintainability and extensibility of the chart.

Note regarding scheduling of components

Both controller and node components of the WEKA CSI plugin require connection to WEKA cluster, both via REST API and via data-plane (e.g. ability to mount WEKA filesystem) and require a WEKA client component on the particular node (or NFS configuration)

@graphite-app graphite-app bot requested a review from tigrawap October 25, 2024 09:33
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sergeyberezansky and the rest of your teammates on Graphite Graphite

Copy link

graphite-app bot commented Oct 25, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (10/25/24)

1 reviewer was added to this PR based on Sergey Berezansky's automation.

@sergeyberezansky sergeyberezansky force-pushed the sergey/separate-affinity branch from b65e6be to b42fd0e Compare October 25, 2024 10:05
@sergeyberezansky sergeyberezansky added the enhancement New feature or request label Oct 29, 2024 — with Graphite App
@sergeyberezansky sergeyberezansky merged commit 485d87d into dev Oct 29, 2024
15 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/separate-affinity branch October 29, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant