-
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
K3S_DATA_DIR is lost when running kill and uninstall scripts as non-root user #11386
Milestone
Comments
reopening for QA |
|
Master
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environmental Info:
K3s Version:
v1.31.2+k3s1
Node(s) CPU architecture, OS, and Version:
Any. Not relevant.
Cluster Configuration:
Various configurations. Not relevant.
Describe the bug:
The generated
k3s-killall.sh
andk3s-uninstall.sh
scripts replace the current process with the same but running withsudo
. This does not preserve the environment, i.e. a custom data directory usingK3S_DATA_DIR
is ignored.Steps To Reproduce:
K3S_DATA_DIR=$HOME/mydata
k3s-uninstall.sh
in the same shellExpected behavior:
Uninstallation should work properly.
$K3S_DATA_DIR
should be cleaned.Actual behavior:
Instead of
$K3S_DATA_DIR
,/var/lib/rancher/k3s
is used.$K3S_DATA_DIR
is not cleaned. K3s is not properly uninstalled. This can be seen in the logs.The text was updated successfully, but these errors were encountered: