Janrs.com | 杨建勇

  • 首页
  • 站点地图
  • 所有文章
  • 加入学习群
Janrs.com | 杨建勇
Go/Kubernetes/Istio/CloudNative
  1. 首页
  2. k8s/云原生
  3. 正文

k3s/rke2 helm卸载rancher

2022年7月19日 99点热度 682人点赞 0条评论

[!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
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: k3s k8s kubernetes rancher rke2 云原生CloudNative
最后更新:2023年3月25日

码仔

Janrs.com

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
有关Go/istio/k8s/云原生直接搜
文章目录
  • helm 彻底卸载 rancher
    • 1.uninstall 卸载
    • 2.删除资源

COPYRIGHT © 2023 Janrs.com | 杨建勇. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

闽ICP备20002184号