-
Notifications
You must be signed in to change notification settings - Fork 555
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
Unable to uninstall single-node k3s cluster #1148
Comments
/good-first-issue |
@24sama: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is designed to be like this, not a bug. we need discussion here and give a good choice then do anythings. please read the file: /kubekey/pkg/pipelines/delete_cluster.go
are you sure uninstall k3s failed? |
@pixiake any update on this issue. |
@xiaods If we use |
I have reproduce this bug on aws clean server, yes, the delete cluster step only perform kubeadm delete steps not k3s-uninstall.sh.
|
I add log in deletecluster func,
the kubekey init runtime on mem, it dont read any k8s version from anywhere. so it give a default k8s version and type on runtime. it redirect wrong path to exec delete cluster pipeline. |
for consistent design, the kk delete should add --with-kubernetes args to support specifed k8s version. it will resolve this concerns. |
fix issue: kubesphere#1148 let below cmd works ``` ./kk delete cluster --with-kubenetes v1.21.6-k3s ``` Signed-off-by: Deshi Xiao <xiaods@gmail.com>
@pixiake hope my pr can fix your case. |
Fixed by: #1426 |
What is version of KubeKey has the issue?
v2.0.0
What is your os environment?
Ubuntu20.04
KubeKey config file
No response
A clear and concise description of what happend.
I installed k3s cluster with
./kk create cluster --with-kubernetes v1.21.6-k3s
. But if I don't specify the configuration file, I can't uninstall k3s cluster with./kk delete cluster
.I think we can check whether
k3s-uninstall.sh
exists in the delete cluster pipeline, and if so, uninstall k3s first.Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: