I use kubespray to provision kubernetes cluster. I need to mark one of the worker nodes as tainted.
Curious is there a way in kubespray to taint a specific worker node?
Actually have yet to test this but from the documentation it looks as if you can run kubespray with an inventory file like this:
[kube-master]
master01
master02
master03
[kube-node]
node01
node02
node03
node04
[tainted]
node01 node_taints='[\"my_taint=true:NoSchedule\"]'
https://github.com/kubernetes-sigs/kubespray/blob/master/docs/vars.md