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

[BUG] When deleting the cluster in autok3s, the data directory defined by --data-dir was not deleted #640

Closed
jinjianming opened this issue Oct 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jinjianming
Copy link

mount |grep kubelet
tmpfs on /work/lib/rancher/k3s/kubelet/pods/fc3e5ab8-b3d3-417e-b605-8c5532c69011/volumes/kubernetes.io~secret/config type tmpfs (rw,relatime)
tmpfs on /work/lib/rancher/k3s/kubelet/pods/fc3e5ab8-b3d3-417e-b605-8c5532c69011/volumes/kubernetes.io~secret/js-loki-stack-promtail-token-9fz8v type tmpfs (rw,relatime)
@jinjianming jinjianming added the bug Something isn't working label Oct 24, 2023
@orangedeng
Copy link
Member

Seems like you are not using the default data-dir to run k3s. In the k3s-uninstall.sh script, it only do unmount to the default data-dir path.

Because the data-dir parameter can be changed in runtime, k3s uninstall won't respect to the current configuration and just unmount the default path.

So I don't think this is a bug for autok3s. You can raise an issue in https://github.com/k3s-io/k3s for more information.

@orangedeng
Copy link
Member

Feel free to re-open this for further discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants