我有一个私人的git仓库来存储公司的舵表。这个git存储库包含.tgz和index.yaml文件。
我正在尝试使用helm serve .在本地测试/重新运行现有图表
我现在的问题是,helm serve没有提供当地的私人舵表。
~/.helm/repository/local下的index.yaml文件为空。
cd ~/.helm/repository/local
$ cat index.yaml
apiVersion: v1
entries: {}
generated: "2019-09-29T10:38:13.526444+01:00"此外,helm search local/无法找到我正在寻找的图表。
$ helm search local/
No results found$ helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879 我期望的是~/.helm/repository/local下的index.yaml应该有私有图表列表。helm search local/将返回我正在查找的图表。
另外,我注意到helm serve命令将index.yaml文件重置为空,而不是加载私有图表。
发布于 2019-11-30 00:02:42
如果要从非默认目录提供图表,请使用helm serve --repo-path <path>。
这个github issue也可能是相关的。根据它,您必须为本地服务的存储库添加单独的存储库,如helm repo add test http://127.0.0.1:8879/。
发布于 2020-02-13 21:01:21
我可以在运行本地图表存储库服务器后解决这个问题,该服务器指向包含图表的本地文件夹。helm serve --repo-path ~/.helm/repository/local。这让我可以使用命令helm install local/{chartName}运行本地图表。在本地服务器运行后重新生成index.yaml。
https://stackoverflow.com/questions/58154250
复制相似问题