1. 卸载扩展组件
先查看已安装的扩展:
bash
kubectl get installplan
然后一键卸载所有扩展:
bash
kubectl delete installplan --all
执行完再次运行 kubectl get installplan,
看到 "No resources found" 才表示扩展清空


2. 卸载 KubeSphere 核心
helm -n kubesphere-system uninstall ks-core
验证是否卸载干净:
helm list -n kubesphere-system
输出为空即表示 KubeSphere 已从集群中移除


检查 CRD 是否残留
KubeFed 会安装一些 CRD,卸载 KubeSphere 时可能没清干净:
kubectl get crd | grep kubefed

执行清理
kubectl get crd -o name | grep kubefed.io | xargs kubectl delete

浙公网安备 33010602011771号