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

Tolerations not supported #1803

Closed
svenhakvoort opened this issue Mar 31, 2023 · 4 comments
Closed

Tolerations not supported #1803

svenhakvoort opened this issue Mar 31, 2023 · 4 comments

Comments

@svenhakvoort
Copy link

Hi, are there any plans to support providing tolerations in addition to nodeAffinity?

Thank you!

@ryanemerson
Copy link
Contributor

Hi @svenhakvoort, it's certainly something we can look into adding.

We also plan to add support for other configurations from the pod spec, such as TopologyPodConstraints, so it would be good if we established a convention for configuring Pod spec components. Currently we allow pod affinity to be configured via spec.affinity, so the question is do we continue to allow top level configuration in a similar manner or nest these fields under an element.

For example, top level:

kind: Infinispan
...
spec:
  affinity:
    ...
  tolerations:
    ...
  topologySpreadConstraints:
    ...

Or nested:

kind: Infinispan
...
spec:
  statefulset:
    affinity:
      ...
    tolerations:
      ...
    topologySpreadConstraints:
      ...

IMO the latter is the more flexible approach going forward, however we will need to transform the existing spec.affinity field if specified.

@rigazilla WDYT?

@svenhakvoort
Copy link
Author

Hi @ryanemerson thank you for your reply.

I definitely agree with the second approach being the most flexible since it allows for more specific pod specs on different components if needed. And going from spec.affinity to spec.statefulset.affinity is very minor and to us at least would be no concern at all.

@rigazilla
Copy link
Collaborator

IMO the latter is the more flexible approach going forward, however we will need to transform the existing spec.affinity field if specified.

@rigazilla WDYT?

yeah, imo better to go with a nested struct

@ryanemerson
Copy link
Contributor

This configuration will be added under the spec.scheduling element the same as the affinity and priorityClassName fields, e.g.:

kind: Infinispan
...
spec:
  scheduling:
    affinity:
      ...
    tolerations:
      ...
    topologySpreadConstraints:
      ...

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

3 participants