<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>卸载 on Huawei</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/</link><description>Recent content in 卸载 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/index.xml" rel="self" type="application/rss+xml"/><item><title>手动卸载</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/uninstallation/manual-uninstallation/</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/manual-uninstallation/</guid><description>&lt;p>本章节介绍如何手动卸载华为CSI。&lt;/p>
&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-notice.gif">&lt;br>
如果您不是出于升级的目的卸载华为CSI，请确保卸载华为CSI前已经在您的容器平台中将华为CSI发放的资源（PV、PVC、快照、存储后端等）全部清理。否则一旦您卸载华为CSI后，这些资源将无法被自动调度、管理或者清理。&lt;/p>
&lt;/blockquote>
&lt;h2 id="section1012817231386">卸载huawei-csi-node服务&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令卸载 huawei-csi-node 服务，huawei-csi 替换为华为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 daemonset huawei-csi-node -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令检查服务是否已成功卸载（如果提示NotFound错误，表示已成功卸载）。&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 daemonset huawei-csi-node -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section34281930180">卸载huawei-csi-controller服务&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令卸载 huawei-csi-controller 服务，huawei-csi 替换为华为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 deployment huawei-csi-controller -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令检查服务是否已成功卸载（如果提示NotFound错误，表示已成功卸载）。&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 deployment huawei-csi-controller -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section4229471288">卸载csidriver对象&lt;/h2>
&lt;p>如果
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation/manual-installation/#li395973220487">安装时未使用CSIDriver特性&lt;/a>
，可跳过本步骤。&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令卸载csidriver对象。&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 csidriver csi.huawei.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令检查服务是否已成功卸载（如果提示NotFound错误，表示已成功卸载）。&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 csidriver csi.huawei.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section111616512911">删除RBAC权限&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>删除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>kubectl -n huawei-csi -l provisioner=csi.huawei.com delete ServiceAccount,Service,role,rolebinding,ClusterRole,ClusterRoleBinding
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section1370361019919">其它资源卸载&lt;/h2>
&lt;ul>
&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></description></item></channel></rss>