问题描述
我按照指南.一段时间后,我决定重新安装K8,但是遇到了删除所有相关文件的麻烦,并且在官方站点上找不到任何文档来删除通过kubeadm安装的集群.有人遇到过同样的问题,并且知道删除所有文件和依赖项的正确方法吗?预先谢谢你.
I installed kubernetes cluster using kubeadm following this guide. After some period of time, I decided to reinstall K8s but run into troubles with removing all related files and not finding any docs on official site how to remove cluster installed via kubeadm.Did somebody meet the same problems and know the proper way of removing all files and dependencies? Thank you in advance.
有关更多信息,我使用apt-get purge/remove
删除了 kubeadm , kubectl 和 kubelet ,但是当我再次开始安装集群时,我得到了下一个错误:
For more information, I removed kubeadm, kubectl and kubelet using apt-get purge/remove
but when I started installing the cluster again I got next errors:
[preflight] Some fatal errors occurred:
Port 6443 is in use
Port 10251 is in use
Port 10252 is in use
/etc/kubernetes/manifests is not empty
/var/lib/kubelet is not empty
Port 2379 is in use
/var/lib/etcd is not empty
推荐答案
使用kubeadm reset
命令.这将取消配置kubernetes集群.
use kubeadm reset
command. this will un-configure the kubernetes cluster.
这篇关于如何完全卸载kubernetes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!