Skip to content
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

k3s uninstall shouldn't delete k3s config.yaml #9981

Open
migs35323 opened this issue Apr 19, 2024 · 1 comment
Open

k3s uninstall shouldn't delete k3s config.yaml #9981

migs35323 opened this issue Apr 19, 2024 · 1 comment

Comments

@migs35323
Copy link

Is your feature request related to a problem? Please describe.
Sometimes when booting a node there are some initial issues that are easily fixed by uninstalling and reinstall the node, or there are situations when we want to convert a machine from an agent to server etc.

using the uninstall script is very convenient but it has the issue of deleting the k3s config filles that we might want to keep
however it has the drawback of deleting the entire config folder and we need to recreate it.

Describe the solution you'd like
i would like that the uninstall script either questioned to include the config files at /etc/rancher/k3s/ or flag that allows to keep theese files

@brandond
Copy link
Contributor

Have you tried just doing chattr +i /etc/rancher/k3s/config.yaml so that the script can't delete it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Triage
Development

No branches or pull requests

2 participants