-
Notifications
You must be signed in to change notification settings - Fork 266
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
Ability to set toleration, affinity and node selector #1841
Comments
That's a good idea, and it shouldn't be hard to implement it with some extra options. If you are fancy feel free to add it after we have discussed about the naming. We ❤️ contributions ;-) |
I wonder if the impl should check for feature flags to be enabled though. It might be really trick to provide appropriate feedback to user otherwise. |
Good point, but I'm afraid that there is no Knative-only API for querying this information ... maybe just try and returning an error with a descriptive error message as feedback. In the help message we can indicate this (e..g with a footnote like add ing a "*" to the message text and then in the bottom something like "only if enabled in the Knative installation" |
/assign |
would the following work?
|
@Shashankft9 yes that looks like a good start. Please make sure key values are case insensitive on user inputs, but correctly represented on Do you need any hints wrt/ the implementation? You can check similar flags in the Btw I wonder how Serving validation webhook reacts to providing these values with disabled feature flags. Could you check it please? |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale I am working on it now, will put up a wip PR soon. |
Feature request
I should be able to set toleration, affinity and node selector on my ksvc, when enabled through the featuregate mentioned here: https://knative.dev/docs/serving/configuration/feature-flags.
Use case
I have a cluster where two nodes are having a different mtu set on them, so I don't want my ksvc pods to be scheduled there. Would have been helpful if i could set it globally through some configmap in knative-serving, but I dont think thats available.
The text was updated successfully, but these errors were encountered: