<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>使用Helm卸载 on Huawei</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/</link><description>Recent content in 使用Helm卸载 on Huawei</description><generator>Hugo</generator><language>zh-cn</language><copyright>版权所有 © 华为技术有限公司 2025。保留一切权利。</copyright><atom:link href="https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/index.xml" rel="self" type="application/rss+xml"/><item><title>Kubernetes、OpenShift、Tanzu卸载华为CSI</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-huawei-csi-on-kubernetes-openshift-and-tanzu/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-huawei-csi-on-kubernetes-openshift-and-tanzu/</guid><description>&lt;p>本章节介绍如何在Kubernetes、OpenShift、Tanzu平台卸载华为CSI。&lt;/p>
&lt;h2 id="section9152125194710">操作步骤&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令卸载华为CSI，其中 &lt;em>helm-huawei-csi&lt;/em> 是自定义的Helm Chart名称，&lt;em>huawei-csi&lt;/em> 是该Helm Chart所在的命名空间。该卸载命令将会卸载华为CSI的huawei-csi-controller、huawei-csi-node和RBAC资源。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>helm uninstall helm-huawei-csi -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>卸载命令执行后，还需要检查卸载是否成功。其中 &lt;em>huawei-csi&lt;/em> 为chart所在的命名空间。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>helm list -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下，如果回显为空，则表示服务卸载成功。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>卸载huawei-csi-host-info对象，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section870813403017">卸载huawei-csi-host-info对象&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>卸载webhook资源，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section871155813014">卸载Webhook资源&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>（可选）卸载快照依赖组件服务，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section48371491319">卸载Snapshot依赖组件服务&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>（可选）卸载Lease资源，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section263805014317">卸载Lease资源&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>（可选）执行以下命令，删除华为CSI所在的命名空间，这里以默认命名空间 huawei-csi 为例：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl delete ns huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>CCE或CCE Agile卸载华为CSI</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-huawei-csi-on-cce-or-cce-agile/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-huawei-csi-on-cce-or-cce-agile/</guid><description>&lt;p>本章节介绍如何在CCE或CCE Agile平台卸载华为CSI，以CCE Agile v22.3.2为例。&lt;/p>
&lt;h2 id="section1489941282414">操作步骤&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>登录CCE Agile平台。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>在主页单击“模板市场 &amp;gt; 模板实例 ”，进入模板实例页面。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>选择华为CSI模板实例，单击“卸载”，在弹出的提示框中单击“确定”。&lt;/p>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/figures/%E5%8D%B8%E8%BD%BD-ch.png">&lt;/p>
&lt;/li>
&lt;li>
&lt;p>卸载huawei-csi-host-info对象，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section870813403017">卸载huawei-csi-host-info对象&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>卸载webhook资源，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section871155813014">卸载Webhook资源&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>（可选）卸载快照依赖组件服务，请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/#section48371491319">卸载Snapshot依赖组件服务&lt;/a>
进行操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>（可选）执行以下命令，删除华为CSI所在的命名空间，这里命名空间以 huawei-csi 为例：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl delete ns huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>卸载CSI依赖组件服务</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-csi-dependent-component-services/</guid><description>&lt;p>本章节介绍如何卸载CSI依赖组件服务。&lt;/p>
&lt;h2 id="section870813403017">卸载huawei-csi-host-info对象&lt;/h2>
&lt;p>名称为huawei-csi-host-info的Secret对象中保存着集群中各个节点的启动器信息，例如iSCSI启动器。使用helm uninstall命令时不会卸载该资源，若需卸载该资源，请参考以下步骤：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="li1648412587587">&lt;/a>执行以下命令检查Secret对象是否存在，其中huawei-csi是Secret对象所在的命名空间&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get secret -n huawei-csi -l secret-provisioner=csi.huawei.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>若步骤
&lt;a href="#li1648412587587">2&lt;/a>
中Secrte存在，执行以下命令删除Secret。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl delete secret -n huawei-csi -l secret-provisioner=csi.huawei.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li93910361022">&lt;/a>执行以下命令检查Secret对象是否存在，其中huawei-csi是Secret对象所在的命名空间&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get secret huawei-csi-host-info -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>若步骤
&lt;a href="#li93910361022">4&lt;/a>
中Secret存在，执行以下命令卸载Secret对象，其中huawei-csi-host-info是Secret对象的名称。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl delete secret huawei-csi-host-info -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section871155813014">卸载Webhook资源&lt;/h2>
&lt;p>名称为storage-backend-controller.xuanwu.huawei.io的webhook资源用于校验Backend的秘钥信息和与存储的连通性，使用helm uninstall命令时不会卸载该资源，若需卸载该资源，请参考以下步骤：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令，查询webhook依赖组件服务。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io storage-backend-controller.xuanwu.huawei.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>NAME WEBHOOKS AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>storage-backend-controller.xuanwu.huawei.io 1 12d
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令，卸载webhook依赖组件服务。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io storage-backend-controller.xuanwu.huawei.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令，检查服务是否已成功卸载。如果结果为空，表示已成功卸载。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io storage-backend-controller.xuanwu.huawei.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section48371491319">卸载Snapshot依赖组件服务&lt;/h2>
&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-notice.gif">&lt;/p></description></item></channel></rss>