sparse-fireman-1423911/17/2022, 8:14 PM
Though, kubelet is started with what I assume is the correct argument.
node-taint: - "CriticalAddonsOnly=true:NoExecute"
Adding the taint with kubectl works fine.
creamy-pencil-8291311/17/2022, 8:15 PM
sparse-fireman-1423911/17/2022, 8:15 PM
creamy-pencil-8291311/17/2022, 8:16 PM
sparse-fireman-1423911/17/2022, 8:16 PM
creamy-pencil-8291311/17/2022, 8:17 PM
RKE2 agents can be configured with the optionsand
node-labelwhich 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. Refer to the official Kubernetes documentation for details on how to add taints and node labels.
sparse-fireman-1423911/17/2022, 8:19 PM