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

Question: How to set NodeSelector for agent plane resources using helm chart? #163

Closed
nosmolovskiy opened this issue Aug 27, 2021 · 6 comments

Comments

@nosmolovskiy
Copy link

I want to run agent plane(subscriber, event-tracker, litmus-operator-ce, workflow-controller) resources on particular nodes.
I found that these resources can be executed with node selector(litmuschaos/litmus) but cant get how to do it using chart.
Do someone can help?

@imrajdas
Copy link
Member

You can't install an agent plane using a helm chart. Agents can be installed using litmusctl and you can pass the --node-selector flag while creating the agent.

Ref- https://github.com/litmuschaos/litmusctl/blob/master/Usage.md

@nosmolovskiy
Copy link
Author

@rajdas98 thanks for answer.
After login to portal I see that Self-Agent was installed to cluster.
Is it possible set NodeSelector for subscriber, chaos-operator-ce, chaos-exporter and workflow-controller which were installed as
Self-Agent using helm chart?

@imrajdas
Copy link
Member

imrajdas commented Aug 31, 2021

for self-agent, node-selector flag is not present.

You can disconnect the self-agent and reconnect it using litmusctl(with --node-selector flag).

@imrajdas imrajdas changed the title Question: Hot to set NodeSelector for agent plane resources using helm chart? Question: How to set NodeSelector for agent plane resources using helm chart? Aug 31, 2021
@nosmolovskiy
Copy link
Author

thanks @rajdas98

@imrajdas imrajdas closed this as completed Sep 3, 2021
@sthomson-wyn
Copy link

For future readers, this appears to now be possible declaratively via litmuschaos/litmus#3527

@emmahsax
Copy link

@sthomson-wyn You mentioned node selectors and tolerations can be declaratively added. Can you explain what you mean? Is there a way for me to set the tolerations, node selectors, and resources via helm?

I see mention of the chaos-exporter, chaos-operator, subscriber, etc here: https://github.com/litmuschaos/litmus-helm/tree/master/charts/litmus-agent#requirements. Is that helm command how I set these values, or do I need to use litmusctl? Are there any docs around how to set those three values (tolerations, node selectors, resources) on the agent plane resources?

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