This message was deleted.
# rke2
a
This message was deleted.
c
it’s called
--register-with-taints
. not
--add-taints-after-registered
the node is already registered, it’s not going to do anything
s
Ah ok, so I need to add it as an argument to kubelet instead of using node-taint in config.yaml?
c
no, after it’s registered you need to use kubectl to change the taints or labels
the kubelet options are just for setting things at the time it registers with the cluster
s
Got it, thanks for helping 🙂
c
https://docs.rke2.io/advanced/#node-labels-and-taints
RKE2 agents can be configured with the options
node-label
and
node-taint
which adds a label and taint to the kubelet. The two options only add labels and/or taints at registration time, and can only be added once and not removed after that through rke2 commands.
If you want to change node labels and taints after node registration you should use
kubectl
. Refer to the official Kubernetes documentation for details on how to add taints and node labels.
docs also cover this behavior
👍 1
s
Not sure how I missed that 😞
353 Views