Kubernetes Taints
Node affinity is a property of pods that attracts them to a set of nodes. Kubernetes taints, on the other hand, are the opposite: they allow a node to repel a set of pods.
You can read the official Kubernetes documentation to learn more about taints and toleration.
To associate taints on your nodepool workers, you can use the --nodepool-taint=KEY=VALUE:EFFECT
option.
For instances use the --nodepool-taint=type=GPU:NoSchedule
option.
After a taint is registered on a nodepool worker, only pods with tolerations will be scheduled for that worker.
Taints options can be repeated in order to register multiple taints.