【问题标题】:Helm : how do I Install the latest helm chart from repoHelm:如何从 repo 安装最新的 helm chart
【发布时间】:2018-11-14 23:45:41
【问题描述】:

如何下​​载已经有不同版本的最新包图?

我尝试使用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 用于图表版本控制时才下载最新图表?

【问题讨论】:

  • 使用 helm repo list 查看本地 helm 中是否存在您想要的 repo。

标签: kubernetes kubernetes-helm


【解决方案1】:

这意味着您要安装的图表在存储库中不存在。尝试列出所有图表。 尝试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

【讨论】:

  • 谢谢,我在 repo 中有所需的图表。我可能认为这个问题是由于 SemVer
【解决方案2】:

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

【讨论】:

  • 谢谢,我在 repo 中有所需的图表。我可能认为这个问题是由于 SemVer
【解决方案3】:

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

否则latest 机制将不起作用。

检查 helm search 以了解您想要的图表是否在 repo 中列出/可用。

【讨论】:

  • 谢谢。我有像 18.08.00-62 , 18.08.00-63 这样的版本这是有效的 semVer
猜你喜欢
  • 1970-01-01
  • 2020-12-04
  • 2020-06-02
  • 2022-08-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-01-24
  • 2023-02-09
相关资源
最近更新 更多