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

How to set node selectors, tolerations, resources on the agent pods? #366

Open
emmahsax opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@emmahsax
Copy link

emmahsax commented Mar 20, 2024

Hello. I am trying to install litmus with Terraform by calling the helm chart like the following:

resource "helm_release" "litmus" {
  chart      = "litmus"
  name       = "litmus"
  namespace  = "litmus"
  repository = "https://litmuschaos.github.io/litmus-helm/"
  version    = "3.1.0"
  values                     = [
    <<-EOT
        mongodb:
          auth:
            replicaSetKey: "..."
            rootPassword: "..."
          nodeSelector:
            "mywebsite.com/nodegroup": "nodegroupname"
          resources:
            "limits":
              "cpu": "512m"
              "memory": "512Mi"
            "requests":
              "cpu": "256m"
              "memory": "256Mi"
          tolerations:
            - "effect": "NoSchedule"
              "key": "mywebsite.com/nodegroup"
              "operator": "Equal"
              "value": "nodegroupname"

          arbiter:
            nodeSelector:
              "mywebsite.com/nodegroup": "nodegroupname"
            resources:
              "limits":
                "cpu": "256m"
                "memory": "256Mi"
              "requests":
                "cpu": "100m"
                "memory": "128Mi"
            tolerations:
              - "effect": "NoSchedule"
                "key": "mywebsite.com/nodegroup"
                "operator": "Equal"
                "value": "nodegroupname"

        portal:
          frontend:
            nodeSelector:
              "mywebsite.com/nodegroup": "nodegroupname"
            resources:
              "limits":
                "cpu": "256m"
                "memory": "256Mi"
              "requests":
                "cpu": "100m"
                "memory": "128Mi"
            tolerations:
              - "effect": "NoSchedule"
                "key": "mywebsite.com/nodegroup"
                "operator": "Equal"
                "value": "nodegroupname"

          server:
            authServer:
              resources:
                "limits":
                  "cpu": "256m"
                  "memory": "256Mi"
                "requests":
                  "cpu": "100m"
                  "memory": "128Mi"
            nodeSelector:
              "mywebsite.com/nodegroup": "nodegroupname"
            tolerations:
              - "effect": "NoSchedule"
                "key": "mywebsite.com/nodegroup"
                "operator": "Equal"
                "value": "nodegroupname"

        upgradeAgent:
          controlPlane:
            image:
              repository: litmuschaos/upgrade-agent-cp
              tag: 2.9.0
          nodeSelector:
            "mywebsite.com/nodegroup": "nodegroupname"
          resources:
            "limits":
              "cpu": "256m"
              "memory": "256Mi"
            "requests":
              "cpu": "100m"
              "memory": "128Mi"
          tolerations:
            - "effect": "NoSchedule"
              "key": "mywebsite.com/nodegroup"
              "operator": "Equal"
              "value": "nodegroupname"
    EOT,
  ]
}

But none of this configures the node selectors, tolerations, and resources on:

  • chaos-exporter
  • chaos-operator
  • event-tracker
  • subscriber
  • workflow-controller

Since litmuschaos/litmus#3527 was merged, I feel like we should be able to set them. But maybe the helm charts haven't been updated with this capability?

Any guidance anyone can provide would be greatly appreciated.

And yes, I did look at #163

@uditgaurav
Copy link
Member

Hi @emmahsax , This should be fix by including this issue with the revamp of litmus-helm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants