Helm:如何从回购中安装最新的Helm图表

时间:2018-11-14 07:55:57

标签: kubernetes kubernetes-helm

我如何下载已经具有不同版本的软件包的最新图表?

我尝试使用helm repo add <repo-name> <repo-url>添加孵化器库,然后进行了helm repo update。当我尝试使用以下命令下载/安装最新图表时:

helm install helm-name repo/chart-name

它将引发以下错误:

Error:
[debug] Created tunnel using local port: '37220'

[debug] SERVER: "127.0.0.1:37220"

[debug] Original chart version: ""
Error: chart "chart-name" matching  not found in repo index. (try 'helm repo update'). No chart version found for chart-name-

关于如何下载最新图表而不是每次都指定图表版本的任何想法? 要么 仅当将semver用于图表的版本控制时,此下载程序才下载最新的图表吗?

3 个答案:

答案 0 :(得分:3)

这意味着您要安装的图表在存储库中不存在。尝试列出所有图表。 尝试helm repo list获取所有现有图表的列表。

我刚刚尝试helm install incubator/vdfgdfgdfgfdg --dry-run --debug模拟某些不存在的图表的安装,并得到了相同的错误:

helm install incubator/vdfgdfgdfgfdg --dry-run --debug
[debug] Created tunnel using local port: '45830'

[debug] SERVER: "127.0.0.1:45830"

[debug] Original chart version: ""
Error: chart "vdfgdfgdfgfdg" matching  not found in incubator index. (try 'helm repo update'). no chart name found

答案 1 :(得分:0)

根据头盔docs的安装,默认行为是默认行为,除非您指定所需的确切版本。如上所述,您的问题很可能是由于图表丢失或拼写错误而引起的,与版本无关。

答案 2 :(得分:0)

请记住,检测到latest图表版本需要您的图表具有有效的SemVer(请参阅https://docs.helm.sh/chart_best_practices/#versions

否则,latest机制将无法正常工作。

检查helm search,以查看所需的图表是否已在仓库中列出/是否可用。

相关问题