参考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-