Can we set taints and tolerations per worker pool?
Yes. You set taints per node pool, or on the control plane, in the Cluster topology. Syself Autopilot puts them on every node of the pool and keeps them there through node replacements, upgrades and scaling.
A taint goes under taints on the pool's entry in spec.topology.workers.machineDeployments, or under spec.topology.controlPlane for the control plane. You do not have to write this by hand: in the Cluster Configurator you fill in the taints for each pool and for the control plane and copy the finished manifest.
A taint repels every pod that does not tolerate it, so the pods that belong on the pool need a matching toleration. This is also how you dedicate a pool to one team or customer. Before you add a NoExecute taint to a running pool, give those workloads their toleration first. Pods without one are evicted.
A taint added with kubectl taint lives only on that one node. It is gone when the node is replaced, which happens on every upgrade.
For a full example, the fields, the propagation modes and the reserved keys, read Taints and tolerations. Labels are set on the pool in the same way, but not every label reaches the nodes. Read Can we set node labels per pool, and why do some labels not propagate? before you add one.
Related questions
