https://rancher.com/ logo
Title
v

victorious-analyst-3332

10/25/2022, 3:41 PM
Howdy all đź‘‹ I was curious if there a mechanism for updating RKE2 node arguments for Rancher managed cluster after the initial joining to the cluster. I see the args from the join command under the
<http://rke2.io/node-args|rke2.io/node-args>
annotation, but editing that directly doesn’t appear to have any impact on the
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
file on the node itself. Thanks a lot.
c

creamy-pencil-82913

10/25/2022, 5:26 PM
You’re intended to edit the cluster in Rancher to do what you want. While you can edit the config files directly on the node, that might conflict with the Rancher-managed config.
The cluster edit form on the Rancher side has fields to set custom args and the like, use that.
v

victorious-analyst-3332

10/25/2022, 5:28 PM
the challenge in this case is that we have specific nodes which need things like specific kubelet args for a larger resource reservation for system services, but it needs to be per-node
we’re looking now at just adding the config directly as a supplemental
/etc/rancher/rke2/config.yaml.d/
file to allow the config to persist as well as update over time
I do see now the label matcher for per-node kubelet args as well
c

creamy-pencil-82913

10/25/2022, 6:34 PM
yeah that’d be the right way to do it. If you want to get hands-on you could add more configuration files to the config.yaml.d directory; just make sure that they don’t conflict with the files managed by the rancher system agent. and know that you’re now on your own for maintaining the content of those files.