https://rancher.com/ logo
Title
a

adorable-toddler-38962

05/24/2023, 2:20 PM
Hey all! how do you taint control plane nodes for an embeded etcd cluster?
a

astonishing-mouse-9587

05/24/2023, 2:25 PM
You can add a taint flag to the installation script for the control plain nodes. https://docs.k3s.io/cli/server
a

adorable-toddler-38962

05/24/2023, 2:25 PM
What should i set it to? sorry still learning here haha
a

astonishing-mouse-9587

05/24/2023, 2:30 PM
Good question. That's where the documentation sucks because it is never gives specific examples. The only thing I see in the docs is this: https://docs.k3s.io/advanced#node-labels-and-taints. You'll probably want to create a test VM cluster with k3s and experiment until you find the right option.
a

adorable-toddler-38962

05/24/2023, 2:31 PM
I did find this:
--node-taint CriticalAddonsOnly=true:NoExecute
in the external db docs https://docs.k3s.io/datastore/ha
a

astonishing-mouse-9587

05/24/2023, 2:32 PM
That's a good place to start experimenting!
a

adorable-toddler-38962

05/24/2023, 2:34 PM
actually i just found this, TechnoTim put together an ansible playbook for building an HA etcd cluster and has the taint in it https://github.com/search?q=repo%3Atechno-tim%2Fk3s-ansible%20taint&type=code
--node-taint <http://node-role.kubernetes.io/master=true:NoSchedule|node-role.kubernetes.io/master=true:NoSchedule>
c

creamy-pencil-82913

05/24/2023, 3:32 PM
You can taint it with whatever you want. If you want some things to run on the tainted nodes, those things must have a matching toleration. That's all there is to it.
a

adorable-toddler-38962

05/24/2023, 3:46 PM
ahhhh cool thanks!