This message was deleted.
# rke2
a
This message was deleted.
h
Okay - maybe I am wrong on this ... I think you should look at the taints (instead of labels)
Copy code
kubectl describe node <node name>
if there are no taints then the node will run users job If there are taints like following then that node will NOT run user job:
Copy code
<http://node-role.kubernetes.io/etcd:NoExecute|node-role.kubernetes.io/etcd:NoExecute>
<http://node-role.kubernetes.io/control-plane:NoSchedule|node-role.kubernetes.io/control-plane:NoSchedule>
or maybe you know that already 🙂
m
ah thank you, taints...
<none>
h
so that's why your hello-world experiment deployed on that node
if you do not want users jobs running on that node, simply add these taints:
Copy code
<http://node-role.kubernetes.io/etcd:NoExecute|node-role.kubernetes.io/etcd:NoExecute>
<http://node-role.kubernetes.io/control-plane:NoSchedule|node-role.kubernetes.io/control-plane:NoSchedule>
Copy code
kubectl taint nodes <node name> <http://node-role.kubernetes.io/controlplane=true:NoSchedule|node-role.kubernetes.io/controlplane=true:NoSchedule>
kubectl taint nodes <node name> <http://node-role.kubernetes.io/etcd=true:NoExecute|node-role.kubernetes.io/etcd=true:NoExecute>
m
thanks! I am going to deploy a 3-node rke2 with no taints and put the Rancher server on that. I presume only one of those nodes will get the "master" label.
n
By default, the RKE2 Servers also run agent workloads (thats the K3s/RKE2 terms for things, see docs)
❤️ 1
m
oh great