litmuschaos / litmus-helm

Helm Charts for the Litmus Chaos Operator & CRDs
Apache License 2.0
47 stars 88 forks source link

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

Closed nosmolovskiy closed 3 years ago

nosmolovskiy commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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

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

nosmolovskiy commented 3 years ago

thanks @rajdas98

sthomson-wyn commented 2 years ago

For future readers, this appears to now be possible declaratively via https://github.com/litmuschaos/litmus/pull/3527

emmahsax commented 8 months ago

@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?