这是掌舵版本$ helm versionClient: &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.yamlbut when I try to install my chart, it will say:Error: found in requirements.yaml, but missing in charts/ directory: elasticsearch, mongodband when I execute helm dep ls, it show status missing$ helm dep listNAME VERSION REPOSITORY STATUSelasticsearch 6.5.1 file://dependency_charts/elasticsearch missingmongodb 4.0.3 file://dependency_charts/mongodb missingthe 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.mdhttps://docs.helm.sh/chart_best_practices/#repository-urlsthis is helm version$ helm versionClient: &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的舵图,未找到本地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-04 11:47