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

Support affinity in the deployment #164

Open
roderik opened this issue Mar 29, 2024 · 1 comment
Open

Support affinity in the deployment #164

roderik opened this issue Mar 29, 2024 · 1 comment

Comments

@roderik
Copy link
Contributor

roderik commented Mar 29, 2024

For precise placement in a locked down production nodepool we use the following

    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: production
              operator: In
              values:
                - "true"
    tolerations:
      - effect: NoSchedule
        key: production
        operator: Equal
        value: "true"

I can set the tolerations but not the affinity

@cbodonnell
Copy link
Contributor

Thanks @roderik - seems reasonable to me to add configuration for affinity. I've passed this along to the team.

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

2 participants