带有Requirements.yaml的舵图,未找到本地图 [英] helm chart with requirements.yaml, did not find local charts
问题描述
我的图表具有elasticsearch和mongdb依赖性,在我的图表中,结构如下:
├── [-rw-rw-r--] Chart.yaml
├── [drwxrwxr-x] dependency_charts
│ ├── [drwxrwxr-x] elasticsearch
│ └── [drwxrwxr-x] mongodb
├── [-rw-rw-r--] deploy.sh
├── [-rw-rw-r--] requirements.yaml
├── [-rw-rw-r--] values.yaml
├── [drwxrwxr-x] templates
│ ├── [-rw-rw-r--] proj-deploy.yaml
│ └── [-rw-rw-r--] proj-svc.yaml
但是当我尝试安装图表时,它会显示:
Error: found in requirements.yaml, but missing in charts/ directory: elasticsearch, mongodb
当我执行hep dep ls时,它显示状态丢失
$ helm dep list
NAME VERSION REPOSITORY STATUS
elasticsearch 6.5.1 file://dependency_charts/elasticsearch missing
mongodb 4.0.3 file://dependency_charts/mongodb missing
版本是appVersion,我也将版本更改为图表版本,这是行不通的.
这是正式文档: https://github.com. com/helm/helm/blob/master/docs/helm/helm_dependency.md https://docs.helm.sh/chart_best_practices/#repository-urls >
这是掌舵版本
$ helm version
Client: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
我可以将这些图表放在charts
文件夹中,但是如果我这样做,舵将在同一图表中安装mongodb和elasticsearch,这是不期望的,我期望在同一个命名空间下有三个图表:myproj,elasticsearch,mongodb.
有人知道我做错了什么吗? 谢谢.
您必须运行helm dep update
.这会将子图放入./charts文件夹并创建./requirements.lock文件.然后即可安装.
my charts has elasticsearch and mongdb dependencies, and in my charts, the structure like this:
├── [-rw-rw-r--] Chart.yaml
├── [drwxrwxr-x] dependency_charts
│ ├── [drwxrwxr-x] elasticsearch
│ └── [drwxrwxr-x] mongodb
├── [-rw-rw-r--] deploy.sh
├── [-rw-rw-r--] requirements.yaml
├── [-rw-rw-r--] values.yaml
├── [drwxrwxr-x] templates
│ ├── [-rw-rw-r--] proj-deploy.yaml
│ └── [-rw-rw-r--] proj-svc.yaml
but when I try to install my chart, it will say:
Error: found in requirements.yaml, but missing in charts/ directory: elasticsearch, mongodb
and when I execute helm dep ls, it show status missing
$ helm dep list
NAME VERSION REPOSITORY STATUS
elasticsearch 6.5.1 file://dependency_charts/elasticsearch missing
mongodb 4.0.3 file://dependency_charts/mongodb missing
the version is appVersion, and I have also change the version to chart version, it doesn't work.
this is the official document: https://github.com/helm/helm/blob/master/docs/helm/helm_dependency.md https://docs.helm.sh/chart_best_practices/#repository-urls
this is helm version
$ helm version
Client: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
And I can put those chart to a charts
folder, but if I do that, helm will install mongodb and elasticsearch in the same charts, that's not expected, what I'm expecting is under the same namespace has three charts: myproj, elasticsearch, mongodb.
Anyone got a clue about what I do wrong? Thanks.
You have to run helm dep update
. This will put subcharts into the ./charts folder and create ./requirements.lock file. Then you can install.
这篇关于带有Requirements.yaml的舵图,未找到本地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!