我正在使用头盔2.6.1将程序包部署到我的kubernetes集群中。我创建了一个nexus原始存储库来托管打包的头盔图表。我也将索引文件上传到了同一文件。
--charts
- wordpress-0.1.0.tgz
- index.yaml
但是,当我尝试进行头盔安装时,它永远找不到包。我尝试了以下所有方法。还有其他选择吗?
+ helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
helm-repo https://admin:admin@nexus.hosted.com/repository/kubecharts/charts
+ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "helm-repo" chart repository
...Unable to get an update from the "stable" chart repository
(https://kubernetes-charts.storage.googleapis.com):
Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp:
lookup kubernetes-charts.storage.googleapis.com on 10.00.0.00:53: no such
host
Update Complete. ⎈ Happy Helming!⎈
+ helm search wordpress-0.1.0.tgz
WARNING: Repo "stable" is corrupt or missing. Try 'helm repo update'.No
results found
+ helm search helm-repo/wordpress-0.1.0.tgz
WARNING: Repo "stable" is corrupt or missing. Try 'helm repo update'.No
results found
+ helm install helm-repo/wordpress-0.1.0.tgz
Error: file "helm-repo/wordpress-0.1.0.tgz" not found
答案 0 :(得分:4)
您引用图表的方式错误。尝试
helm search helm-repo/wordpress
helm install helm-repo/wordpress
如果您需要安装特定版本:
helm install helm-repo/wordpress --version=0.1.0
答案 1 :(得分:0)
这个答案有点抢先,但是几天之后,我应该在https://github.com/sonatype-nexus-community/nexus-repository-helm
处发布一个掌舵的插件。您可能会用它代替原始前进。我会看回购等,它应该在本周或下周初发布。
使用raw很整洁,但这应该开始为您向前创建index.yaml等。