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

global.affinity.nodeAffinity does not work #2917

Open
afreyermuth98 opened this issue Sep 11, 2024 · 1 comment
Open

global.affinity.nodeAffinity does not work #2917

afreyermuth98 opened this issue Sep 11, 2024 · 1 comment

Comments

@afreyermuth98
Copy link

Describe the bug

I want to deploy my argocd pods on a specific node role using nodeAffinity like this :

global:
  affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
              - key: role
                operator: In
                values:
                  - <MY_NODE_ROLE>

But this is not replicated inside the manifests and the applications are deployed wherever they can

Related helm chart

argo-cd

Helm chart version

7.3.11

To Reproduce

Deploy the helm release with this kind of helm values

Expected behavior

argo-cd to be deployed on the good set of nodes

Screenshots

No response

Additional context

No response

@afreyermuth98 afreyermuth98 added the bug Something isn't working label Sep 11, 2024
@yu-croco
Copy link
Collaborator

Hi @afreyermuth98 ,
According to the values.yaml, you need to define like below ?

global:
  affinity:
    nodeAffinity:
      # -- Default node affinity rules. Either: `none`, `soft` or `hard`
      type: hard
      # -- Default match expressions for node affinity
      matchExpressions:
        - key: role
          operator: In
          values:
            - <MY_NODE_ROLE>

You can also read the list of types in README.
https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd#global-configs

@yu-croco yu-croco added question and removed bug Something isn't working labels Sep 20, 2024
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