workers on all nodes #288
-
Simple question. I have created 5 node clusters that have 3 master 2 worker nodes no problems, but is there a way to create a cluster that has workers on all nodes? Is it as easy as adding the nodes in both master and worker? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This should be as simple as removing this line right here in your {{ '--node-taint node-role.kubernetes.io/master=true:NoSchedule' if k3s_master_taint else '' }} This applies a taint to a node so that it is marked as a kubectl taint nodes node1 node2 node3 node-role.kubernetes.io/master=true:NoSchedule- (You'll need to updated the node names to match yours) if you notice the |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue. I've got three nodes and I've put all of them in both the
I originally didn't catch the
Checking on the nodes and trying to restart the I then found this thread and ran the On line 26 in
Any thoughts on this and where I might have gone wrong? |
Beta Was this translation helpful? Give feedback.
This should be as simple as removing this line right here in your
all.yaml
(line 36){{ '--node-taint node-role.kubernetes.io/master=true:NoSchedule' if k3s_master_taint else '' }}
This applies a taint to a node so that it is marked as a
master
and no workload will run unless they are critical. If you've already created your cluster, you can remove that taint(You'll need to updated the node names to match yours)
if you notice the
-
at the end, that means remove, so if you need to add the taint back you can run the same command without the-