Knative: Operator’s Handbook

NodeSelectors and Tolerations

To assign certain Pods to certains kinds of Kubernetes Nodes, you would normally use nodeSelectors or taints/tolerations.

These configuration need to be specified in the PodSpec section of a Pod, however the RevisionSpec section of the Knative Service API currently does not support specifying such fields.


You can implement your own mutating admission webhooks for Pod or Deployment objects, and intercept the ones that are created by Knative (by looking at labels) and modify them to inject the node selector you want before they are created.