replicatedhq / replicated-sdk

Service that allows you to embed key Replicated features alongside your application.
https://docs.replicated.com/vendor/replicated-sdk-overview
Apache License 2.0
4 stars 5 forks source link

Support affinity in the deployment #164

Open roderik opened 5 months ago

roderik commented 5 months ago

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 commented 5 months ago

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