<?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/upgrade/upgrade-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/upgrade/upgrade-using-helm/index.xml" rel="self" type="application/rss+xml"/><item><title>从2.x或3.x升级至4.x版本</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/upgrade/upgrade-using-helm/upgrading-from-2-x-or-3-x-to-4-x/</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/upgrade/upgrade-using-helm/upgrading-from-2-x-or-3-x-to-4-x/</guid><description>&lt;h2 id="section3200825558">备份存储后端配置&lt;/h2>
&lt;p>如果您已按照以上须知评估风险后，确认需要从2.x或3.x版本的CSI升级至4.11.0版本，请按照以下操作步骤备份存储后端配置：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令备份后端信息到configmap.json文件中。OpenShift平台使用&lt;strong>oc&lt;/strong>替换&lt;strong>kubectl&lt;/strong>命令。&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 cm huawei-csi-configmap -n huawei-csi -o json &amp;gt; configmap.json
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section1413511233612">升级华为CSI&lt;/h2>
&lt;p>请按照
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/upgrade/upgrade-using-helm/upgrading-huawei-csi-on-kubernetes-openshift-and-tanzu/#section6841317173013">升级华为CSI&lt;/a>
中的步骤进行升级。&lt;/p>
&lt;h2 id="section496812169812">配置存储后端&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>请将
&lt;a href="#section3200825558">备份存储后端配置&lt;/a>
中备份的后端信息，按照
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/basic-services/storage-backend-management/">存储后端管理&lt;/a>
章节的说明配置存储后端。其中通过备份后端信息配置存储后端命令如下。&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>oceanctl create backend -f configmap.json -i json -n huawei-csi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>Kubernetes、OpenShift、Tanzu升级华为CSI</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/upgrade/upgrade-using-helm/upgrading-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/upgrade/upgrade-using-helm/upgrading-huawei-csi-on-kubernetes-openshift-and-tanzu/</guid><description>&lt;h2 id="section12493103133711">前提条件&lt;/h2>
&lt;ul>
&lt;li>旧版本华为CSI使用Helm安装。&lt;/li>
&lt;li>新版本华为CSI镜像已制作完成，并且按照
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation-preparations/uploading-a-huawei-csi-image/">上传华为CSI镜像&lt;/a>
章节说明，上传到镜像仓库或者导入到所有节点。&lt;/li>
&lt;/ul>
&lt;h2 id="section6841317173013">升级华为CSI&lt;/h2>
&lt;p>如果您旧版本CSI使用Helm部署，请按照以下操作步骤升级华为CSI。&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>将目标版本CSI组件包拷贝到master节点的任意目录下。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>进入到helm/esdk的工作目录下，目录路径请参见
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation-preparations/downloading-the-huawei-csi-software-package/#zh-cn_topic_0150885197_table17200162435412">表1&lt;/a>
。&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>cd helm/esdk
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行&lt;strong>kubectl apply -f&lt;/strong> ./crds/backend/命令，更新存储后端CRD&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 apply -f ./crds/backend/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;strong>（可选）&lt;/strong> 请务必按照
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation-preparations/checking-volume-snapshot-dependent-components/">检查卷快照依赖组件&lt;/a>
章节检查快照依赖组件，确认无误后执行执行以下命令更新快照CRD，如果controller.snapshot.enabled参数设置为false或Kubernetes版本低于v1.20，可跳过本步骤，详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation/installation-using-helm/parameters-in-the-values-yaml-file-of-helm/#table813124411459">表2&lt;/a>
。&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 apply -f ./crds/snapshot-crds/ --validate=false
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li1037712113474">&lt;/a>执行以下命令，获取原有服务配置文件。其中helm-huawei-csi为旧版本安装时指定的Helm Chart名称，huawei-csi为旧版本安装时指定的Helm 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 get values helm-huawei-csi -n huawei-csi -a &amp;gt; ./update-values.yaml
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行&lt;strong>vi update-values.yaml&lt;/strong>命令打开
&lt;a href="#li1037712113474">6&lt;/a>
中获取的文件，修改images配置项，更新镜像至最新版本。需要修改的参数请参考
&lt;a href="#table1554616217465">表1&lt;/a>
。&lt;/p>
&lt;p>&lt;strong>表 1&lt;/strong> images配置项&lt;/p>
&lt;p>&lt;a name="table1554616217465">&lt;/a>&lt;/p>
&lt;table>&lt;thead align="left">&lt;tr id="row5547102174612">&lt;th class="cellrowborder" valign="top" width="27.597240275972407%" id="mcps1.2.5.1.1">&lt;p id="zh-cn_topic_0214996140_p166064474810">&lt;a name="zh-cn_topic_0214996140_p166064474810">&lt;/a>&lt;a name="zh-cn_topic_0214996140_p166064474810">&lt;/a>容器名称&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="24.80751924807519%" id="mcps1.2.5.1.2">&lt;p id="p1340513569100">&lt;a name="p1340513569100">&lt;/a>&lt;a name="p1340513569100">&lt;/a>描述&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="13.668633136686331%" id="mcps1.2.5.1.3">&lt;p id="p917411101195">&lt;a name="p917411101195">&lt;/a>&lt;a name="p917411101195">&lt;/a>K8s版本要求&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="33.92660733926608%" id="mcps1.2.5.1.4">&lt;p id="zh-cn_topic_0214996140_p26601644124817">&lt;a name="zh-cn_topic_0214996140_p26601644124817">&lt;/a>&lt;a name="zh-cn_topic_0214996140_p26601644124817">&lt;/a>修改为&lt;/p>
&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>&lt;tr id="row193537226910">&lt;td class="cellrowborder" valign="top" width="27.597240275972407%" headers="mcps1.2.5.1.1 ">&lt;p id="p101561535494">&lt;a name="p101561535494">&lt;/a>&lt;a name="p101561535494">&lt;/a>storage-backend-controller&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="24.80751924807519%" headers="mcps1.2.5.1.2 ">&lt;p id="p14405356131013">&lt;a name="p14405356131013">&lt;/a>&lt;a name="p14405356131013">&lt;/a>huawei-csi镜像。&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="13.668633136686331%" headers="mcps1.2.5.1.3 ">&lt;p id="p1015617351799">&lt;a name="p1015617351799">&lt;/a>&lt;a name="p1015617351799">&lt;/a>v1.16+&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="33.92660733926608%" headers="mcps1.2.5.1.4 ">&lt;p id="p0156183516920">&lt;a name="p0156183516920">&lt;/a>&lt;a name="p0156183516920">&lt;/a>storage-backend-controller:&lt;span id="ph131571335991">&lt;a name="ph131571335991">&lt;/a>&lt;a name="ph131571335991">&lt;/a>4.11.0&lt;/span>&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row137401924896">&lt;td class="cellrowborder" valign="top" width="27.597240275972407%" headers="mcps1.2.5.1.1 ">&lt;p id="p81571358910">&lt;a name="p81571358910">&lt;/a>&lt;a name="p81571358910">&lt;/a>storage-backend-sidecar&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="24.80751924807519%" headers="mcps1.2.5.1.2 ">&lt;p id="p74055565107">&lt;a name="p74055565107">&lt;/a>&lt;a name="p74055565107">&lt;/a>华为后端管理storageBackendContent资源的镜像&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="13.668633136686331%" headers="mcps1.2.5.1.3 ">&lt;p id="p18157173510920">&lt;a name="p18157173510920">&lt;/a>&lt;a name="p18157173510920">&lt;/a>v1.16+&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="33.92660733926608%" headers="mcps1.2.5.1.4 ">&lt;p id="p415783518912">&lt;a name="p415783518912">&lt;/a>&lt;a name="p415783518912">&lt;/a>storage-backend-sidecar:&lt;span id="ph61574352914">&lt;a name="ph61574352914">&lt;/a>&lt;a name="ph61574352914">&lt;/a>4.11.0&lt;/span>&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row11864142612910">&lt;td class="cellrowborder" valign="top" width="27.597240275972407%" headers="mcps1.2.5.1.1 ">&lt;p id="p615719351098">&lt;a name="p615719351098">&lt;/a>&lt;a name="p615719351098">&lt;/a>huawei-csi-driver&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="24.80751924807519%" headers="mcps1.2.5.1.2 ">&lt;p id="p740515611016">&lt;a name="p740515611016">&lt;/a>&lt;a name="p740515611016">&lt;/a>华为后端管理storageBackendClaim资源的镜像。&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="13.668633136686331%" headers="mcps1.2.5.1.3 ">&lt;p id="p11157435196">&lt;a name="p11157435196">&lt;/a>&lt;a name="p11157435196">&lt;/a>v1.16+&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="33.92660733926608%" headers="mcps1.2.5.1.4 ">&lt;p id="p1015714351890">&lt;a name="p1015714351890">&lt;/a>&lt;a name="p1015714351890">&lt;/a>huawei-csi:&lt;span id="ph14157935896">&lt;a name="ph14157935896">&lt;/a>&lt;a name="ph14157935896">&lt;/a>4.11.0&lt;/span>&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row1035818295911">&lt;td class="cellrowborder" valign="top" width="27.597240275972407%" headers="mcps1.2.5.1.1 ">&lt;p id="p5157935795">&lt;a name="p5157935795">&lt;/a>&lt;a name="p5157935795">&lt;/a>huawei-csi-extender&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="24.80751924807519%" headers="mcps1.2.5.1.2 ">&lt;p id="p1040555619107">&lt;a name="p1040555619107">&lt;/a>&lt;a name="p1040555619107">&lt;/a>huawei-csi-extender镜像&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="13.668633136686331%" headers="mcps1.2.5.1.3 ">&lt;p id="p415710351892">&lt;a name="p415710351892">&lt;/a>&lt;a name="p415710351892">&lt;/a>v1.16+&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="33.92660733926608%" headers="mcps1.2.5.1.4 ">&lt;p id="p51571935491">&lt;a name="p51571935491">&lt;/a>&lt;a name="p51571935491">&lt;/a>huawei-csi-extender:&lt;span id="ph1515716351795">&lt;a name="ph1515716351795">&lt;/a>&lt;a name="ph1515716351795">&lt;/a>4.11.0&lt;/span>&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row9547192114619">&lt;td class="cellrowborder" valign="top" width="27.597240275972407%" headers="mcps1.2.5.1.1 ">&lt;p id="zh-cn_topic_0214996140_p86601044154812">&lt;a name="zh-cn_topic_0214996140_p86601044154812">&lt;/a>&lt;a name="zh-cn_topic_0214996140_p86601044154812">&lt;/a>images.sidecar.livenessProbe&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="24.80751924807519%" headers="mcps1.2.5.1.2 ">&lt;p id="p22105111109">&lt;a name="p22105111109">&lt;/a>&lt;a name="p22105111109">&lt;/a>&lt;a href="https://kubernetes-csi.github.io/docs/livenessprobe.html" target="_blank" rel="noopener noreferrer">livenessprobe&lt;/a> sidecar镜像。&lt;/p></description></item><item><title>CCE或CCE Agile升级华为CSI</title><link>https://huawei.github.io/css-docs/v4.11.0/installation-and-deployment/csi/upgrade/upgrade-using-helm/upgrading-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/upgrade/upgrade-using-helm/upgrading-huawei-csi-on-cce-or-cce-agile/</guid><description>&lt;h2 id="zh-cn_topic_0000001275627010_zh-cn_topic_0000001232767941_section19453102010152">前提条件&lt;/h2>
&lt;p>已下载新版本CSI的软件包。&lt;/p>
&lt;h2 id="section7449184616111">操作步骤&lt;/h2>
&lt;ol>
&lt;li>参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/uninstallation/uninstallation-using-helm/uninstalling-huawei-csi-on-cce-or-cce-agile/">CCE或CCE Agile卸载华为CSI&lt;/a>
卸载CSI。&lt;/li>
&lt;li>参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation/installation-using-helm/installing-huawei-csi-on-the-cce-or-cce-agile-platform/">CCE或CCE Agile平台安装华为CSI&lt;/a>
安装新版本的CSI。&lt;/li>
&lt;/ol></description></item></channel></rss>