This message was deleted.
# rke2
a
This message was deleted.
c
have you seen the --data-dir flag?
h
thanks! I see it now... https://docs.rke2.io/subcommands/ however, do I simply add
--data-dir
to the registration command I get from rancher UI for adding windows worker node?
c
You would want to add it to the args in the node config customization
the registration command has you run rancher-system-agent, so any flags you add there are passed to the agent, not to rke2 itself
h
when I look at the node config, there is a box for rke2.io/node-args is this where I need to add?
c
no, that is a record of what it was started with, changing it does not actually change the args
it would be in the cluster edit screen
you might actually have to go into the yaml options to do it
and now that I think about it, Rancher provisioning might not support this at all as it is going to expect to find things in the default install directory
h
hmm... interesting... not a Windows admin, but something I will experiment with - create a d:\var\lib\rancher and then make a symbolic link over to c:\var\lib\rancher... I will have to check to see if that is possible at all at OS layer first. then maybe it will be okay? 🤞