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

Add tolerations and nodeSelector to seldon-core-operator helm chart #5958

Open
yavorivanov-cw opened this issue Oct 7, 2024 · 3 comments
Open

Comments

@yavorivanov-cw
Copy link

We are currently using seldon-core-operator and would like to add tolerations and nodeSelector to the seldon-controller-manager.

We are using the chart like this:

helm upgrade --install seldon-core seldon-core-operator \
   --repo https://storage.googleapis.com/seldon-charts \
   --set usageMetrics.enabled=false \
   --set istio.enabled=false \
   --create-namespace \
   --namespace seldon-system
@matthewlowdon
Copy link
Member

Hi @yavorivanov-cw, thanks for reaching out! We'd love to understand more about your specific needs so we can help out.

Could you share a bit more about the context for your request? For example:

  • The exact tolerations and nodeSelector settings you're looking to add?
  • What's prompting the need for these configurations in your environment?
  • Any challenges you're facing with the current setup?

Knowing more will help us figure out the best way to support you. It may be that Seldon Core 2 has features that fit your requirements.

@yavorivanov-cw
Copy link
Author

Hi @yavorivanov-cw, thanks for reaching out! We'd love to understand more about your specific needs so we can help out.

Could you share a bit more about the context for your request? For example:

* The exact tolerations and nodeSelector settings you're looking to add?

* What's prompting the need for these configurations in your environment?

* Any challenges you're facing with the current setup?

Knowing more will help us figure out the best way to support you. It may be that Seldon Core 2 has features that fit your requirements.

Hi @matthewlowdon and thanks for responding.

We would like to have the following tolerations and affinity set:

  tolerations:
  - key: "CriticalAddonsOnly"
    operator: "Equal"
    value: "true"
    effect: "NoSchedule"
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: preferred-workload
            operator: NotIn
            values:
              - models
      preferredDuringSchedulingIgnoredDuringExecution:
        - weight: 80
          preference:
            matchExpressions:
            - key: kubernetes.azure.com/agentpool
              operator: In
              values:
                - system

We try to schedule all of our core components (like seldon) on a specific node pool. The core components still can run on other nodes but the affinity should help us to be more stable. It is currently working as it is but as I said we would like to be more flexible and tell the scheduler where we want our seldon.

@matthewlowdon
Copy link
Member

Hi @yavorivanov-cw, thanks for your reply. I believe in this case it would be beneficial for you to adopt Core 2, which was designed to support this type of configuration.

You can find more information here: https://docs.seldon.ai/seldon-core-2/resource-allocation

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