This message was deleted.
# k3s
a
This message was deleted.
a
You can add a taint flag to the installation script for the control plain nodes. https://docs.k3s.io/cli/server
a
What should i set it to? sorry still learning here haha
a
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
I did find this:
--node-taint CriticalAddonsOnly=true:NoExecute
in the external db docs https://docs.k3s.io/datastore/ha
a
That's a good place to start experimenting!
a
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
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
ahhhh cool thanks!