Skip to content

Using nodeSelector/tolerations with Serving? #1816

Closed

Description

@jeremyrickard

👋 This is kind of part question/feature request!

Could Revision be extended to support using Tolerations and/or Node Selectors? I get the reason why it doesn't include the entire pod spec, but I think some additional attributes to influence scheduling could be useful. I looked through the current types and I don't see how I can do this today, but I might have missed something!

For example, I might care about where my thing gets scheduled if....

  • I have a hybrid cluster with both Linux and Windows nodes. I've got some things I want to run with KNative that need to run on the windows nodes. Those nodes are tainted, so I'd need to utilize label selectors / tolerations to make that a thing.

In most cases, I probably don't care where things run because serverless...but somettimes I think there are. This change seems like it would be useful and not have a ton of impact to user experience or complexity.

I'd be interested in working on this if it's something that seems palatable. cc: @krancour

Activity

  1. added
    area/API
    area/build
    area/test-and-release
    kind/question
    kind/bug
    kind/cleanup
    kind/doc
    kind/feature
    kind/process
    kind/spec
    on Aug 8, 2018
  2. 79 remaining items

  3. emaildanwilson commented on Jul 9, 2020

    @emaildanwilson
    Contributor

    Would config-features then have a flag to allow affinity/nodeSelector/etc in the podSpec or would those settings somehow get set from somewhere else as defined with a fieldRef? I'm trying to understand what the implementation would look like.

  4. JRBANCEL commented on Jul 9, 2020

    @JRBANCEL
    Contributor

    Would config-features then have a flag to allow affinity/nodeSelector/etc in the podSpec

    Yes, this looks like the right way to do this.

  5. emaildanwilson commented on Jul 15, 2020

    @emaildanwilson
    Contributor
  6. removed their assignment
    on Jul 15, 2020
  7. mpetason commented on Jul 15, 2020

    @mpetason

    Talked to @emaildanwilson on Slack. They want to take over the issue and work on it. I'm on vacation next week so I won't be able to finish it as quickly.

  8. evankanderson commented on Jul 17, 2020

    @evankanderson
    Member

    /assign @whaught

    It sounds like Weston might be the right person to do an initial pass and then find someone else with approver if he doesn't have it by then.

  9. evankanderson commented on Jul 17, 2020

    @evankanderson
    Member

    /unassign whaught

    Whoops, this is the issue, not the PR.

  10. rccrdpccl commented on Aug 3, 2020

    @rccrdpccl

    Glad to see this landing to knative-serving. However, since this did not look like it was going to be implemented, we have been implementing it through annotations, one CRD and a webhook, greatly simplifying the definition from the user perspective https://github.com/softonic/node-policy-webhook @sumowrestler @calclavia

  11. sniperking1234 commented on Aug 11, 2020

    @sniperking1234
    Contributor

    When will this feature be available?

  12. mattmoor commented on Aug 11, 2020

    @mattmoor
    Contributor

    in 0.17, which cuts a week from tomorrow.

  13. removed this from the Ice Box milestone on Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/APIkind/featurekind/questionkind/speclifecycle/stale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions