kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

Delete cluster does not take effect

Open 24sama opened this issue 2 years ago • 0 comments

What is version of KubeKey has the issue?

v1.2.0-alpha.6

What is your os environment?

Ubuntu

KubeKey config file

No response

A clear and concise description of what happend.

The kubernetes cluster CRI is containerd. If i want to delete my cluster and forget to specify the ContainerManager, just like this:

./kk delete cluster

Kubekey will use the default value of container manager ( docker ) and delete the cluster by using:

/usr/local/bin/kubeadm reset -f

This command is useful for docker enviorment, but is not for containerd enviroment. The containerd enviroment need to use this command:

/usr/local/bin/kubeadm reset -f --cri-socket unix:///run/containerd/containerd.sock

Finally, i have to clear my enviroment manully.

Relevant log output

No response

Additional information

No response

24sama avatar Oct 29 '21 03:10 24sama