[!TIP]
helm
彻底卸载rancher
转载请注明出处:https://janrs.com
helm 彻底卸载 rancher
1.uninstall 卸载
列出 helm
已部署的服务
helm list --all-namespaces
显示
fleet cattle-fleet-system 4 2022-09-12 03:37:38.802762087 +0000 UTC deployed fleet-100.0.5+up0.3.11 0.3.11
fleet-agent-local cattle-fleet-local-system 1 2022-09-12 03:36:26.644160694 +0000 UTC deployed fleet-agent-local-v0.0.0+s-a9ff11c08a6c3c5a08b64bb9729817bd2403ca4c74b0393e9a3f3c0808871
fleet-crd cattle-fleet-system 1 2022-09-12 03:30:19.217649689 +0000 UTC deployed fleet-crd-100.0.5+up0.3.11 0.3.11
rancher cattle-system 1 2022-09-11 23:24:43.417147138 -0400 EDT failed rancher-2.6.8 v2.6.8
rancher-webhook cattle-system 1 2022-09-12 03:36:47.20587315 +0000 UTC deployed rancher-webhook-1.0.5+up0.2.6 0.2.6
traefik kube-system 1 2022-09-12 02:22:27.074015082 +0000 UTC deployed traefik-10.19.300 2.6.2
traefik-crd kube-system 1 2022-09-12 02:22:21.872091105 +0000 UTC deployed traefik-crd-10.19.300
批量删除
helm uninstall fleet -n cattle-fleet-system && \
helm uninstall fleet-agent-local -n cattle-fleet-local-system && \
helm uninstall fleet-crd -n cattle-fleet-system && \
helm uninstall rancher -n cattle-system && \
helm uninstall rancher-webhook -n cattle-system && \
helm uninstall traefik -n kube-system && \
helm uninstall traefik-crd -n kube-system
2.删除资源
[!NOTE]
使用helm
部署rancher
后会生成资源。需要使用官方提供的工具进行删除
具体使用查看官方文档:(https://docs.rancher.cn/docs/rancher2/system-tools/_index/)
下载
wget https://github.com/rancher/system-tools/releases/download/v0.1.1-rc7/system-tools_linux-amd64 && \
chmod 777 system-tools_linux-amd64
执行
./system-tools_linux-amd64 remove -c ~/.kube/config -n cattle-system --force
发表回复