-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration directory different than /etc/rancher/
#11473
Comments
The /etc/rancher file locations are not currently configurable. The error when it's a symlink is unexpected, we can look at that. Have you tried symlinking /etc/rancher/node and /etc/rancher/k3s individually? Do you get the same behavior? |
I just tried this but it results in the same error
For reference, this is the error I get when only symlinking
I tried with |
The problem was the target of the symlink at Sorry for the noise, I had the wrong idea of how a symlink is treated in this case. |
Well yeah, that seems important. I wouldn't expect it to work with a broken symlink. |
Is your feature request related to a problem? Please describe.
I run k3s server on a system with volatile root where only specific paths are persisted across reboots. The inability of changing the configuration directory to something other than
/etc/rancher
and k3s not following directory symlinks at/etc/rancher
make it very hard for me to persist the content of/etc/rancher
. Unfortunately, mounts also don't work for me in combination with systemd-confext.Describe the solution you'd like
My problem would be solved if I could point k3s to another configuration directory. Is this already possible and I'm missing something here? I didn't find a way to set it to another path, please let me know if this is already possible.
Describe alternatives you've considered
It would be also ok if k3s would follow symlinks, currently it errors with
file exists
when a symlink exists at/etc/rancher
.Additional context
Is there anything speaking against making this configurable? If not, I could try to contribute a PR for it.
The text was updated successfully, but these errors were encountered: