我是Helm的新手,我想更新我使用的图表的版本。
运行helm list
时,我可以看到:
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
jenkins 43 Thu Sep 24 08:21:54 2020 DEPLOYED jenkins-0.35.10 0.35.10 infrastructure
我想将图表的版本更新为jenkins-0.35.1
。我调查了helm upgrade命令,但对我来说如何执行尚不十分清楚。
有人可以帮忙吗?
我已经尝试过helm upgrade --install --namespace infrastructure jenkins jenkins-0.35.1
,但是我可以看到此错误Error: failed to download "jenkins-0.35.1" (hint: running
helm回购更新 may help)
答案 0 :(得分:0)
在升级掌舵图表之前,需要使用helm repo update
更新图表存储库,这将更新您对图表存储库所做的更改。 helm repo list
将提供您已配置的存储库的列表。如果您没有任何存储库,这将对https://helm.sh/docs/topics/chart_repository/
但是,您可以通过运行helm package
命令手动打包较新的版本,然后升级图表。
$ helm ls --short # Here jenkins is my release name
jenkins
$ cd jenkins # into the chart directory
$ helm package . # You will now find a **jenkins-0.35.1.tgz** in the chart folder*
$ helm upgrade jenkins --namespace infrastructure jenkins-0.35.1.tgz