helm2升级至helm3

本文详细介绍了如何从helm2升级至helm3,包括下载helm3最新版本,安装helm-2to3插件,迁移helm2配置,迁移release以及清理helm2数据的步骤。确保无缝过渡并遵循官方推荐的迁移路径。
摘要由CSDN通过智能技术生成

参考github:https://github.com/helm/helm/releases/tag/v3.4.1

可以从rancher国内仓库下载helm3工具

下载helm3最新版本

wget http://rancher-mirror.cnrancher.com/helm/v3.4.1/helm-v3.4.1-linux-amd64.tar.gz
tar -zxvf helm-v3.4.1-linux-amd64.tar.gz
cp linux-amd64/helm /usr/local/bin/helm3

确认helm版本

# helm3 version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
version.BuildInfo{
   Version:"v3.4.1", GitCommit:"c4e74854886b2efe3321e185578e6db9be0a6e29", GitTreeState:"clean", GoVersion:"go1.14.11"}

安装helm-2to3插件

参考:https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/

helm3 plugin install https://github.com/helm/helm-2to3

输出如下结果则安装成功

Installed plugin: 2to3

查看helm3插件

# helm3 plugin list
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
NAME    VERSION DESCRIPTION                                                               
2to3    0.7.0   migrate and cleanup Helm v2 configuration and releases in-place to Helm v3

迁移helm2配置至helm3

这一步会将repos、plugins、Chart starters迁移到helm3中

# helm3 2to3 move config
WARNING: Kubernetes configuration file is group-
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值