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

Tolerations not added to setup-credentials-job #178

Open
dgparker opened this issue Dec 6, 2023 · 3 comments · May be fixed by #179
Open

Tolerations not added to setup-credentials-job #178

dgparker opened this issue Dec 6, 2023 · 3 comments · May be fixed by #179

Comments

@dgparker
Copy link

dgparker commented Dec 6, 2023

The setup-credentials-job does not currently support tolerations or nodeSelectors.

Proposal 1:
Inherit tolerations and nodeSelectors from top master values e.g.;
.Values.master.tolerations

Proposal 2:
Define job specific tolerations and nodeSelectors for authCredentials e.g.;
.Values.authCredentials.tolerations

proposal 2 seems more consistent with the current configuration since support for both of these fields exists at both the master and tserver levels.

If desired, willing to contribute changes upstream.

@iSignal
Copy link
Contributor

iSignal commented Dec 14, 2023

Flowing the tserver tolerations to this job makes sense (because it is essentially talking to the tservers) @bhavin192 @baba230896 @amannijhawan - any opinions?

@amannijhawan
Copy link
Contributor

amannijhawan commented Dec 14, 2023

Hi @dgparker
Thanks for contributing to yugabyte, we can certainly take contributions in this area.
We have a contributor guide, it doesn't specifically cover helm chart changes but it applies to the charts repo as well. https://docs.yugabyte.com/preview/contribute/

Proposal 2 gives us the most flexibility, the trade off is that if the tolerations are the same as master, tserver we would have to repeat that in values.yaml multiple times.

As @iSignal suggested proposal 1 where we inherit the same values as tserver works as well since we are mostly talking to the tserver in this case.

Can you shed some light on what is the usecase on your end for this ?

dgparker pushed a commit to dgparker/charts that referenced this issue Dec 17, 2023
@dgparker dgparker linked a pull request Dec 17, 2023 that will close this issue
@dgparker
Copy link
Author

Created a PR to address this issue.

I'm in agreement with @iSignal that inheriting values from tserver makes the most sense. Additionally it reduces repetition in values.yaml as mentioned by @amannijhawan.

Something interesting perhaps - Chart allows users to specify separate tolerations for tserver and master but the nodeSelectors are shared.

use-case: We're deploying into a shared environment where nodes are isolated by business entity (controlled by taint) . Without the proper tolerations pods will fail to be scheduled.

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 a pull request may close this issue.

3 participants