gpt4 book ai didi

kubernetes - 列出已安装图表的 helm 依赖项

转载 作者:行者123 更新时间:2023-12-05 02:45:13 27 4
gpt4 key购买 nike

Helm 提供列表选项 dependencies浏览文件时查看图表。

所以如果我在my-chart文件夹之上,我可以执行

▶ helm dependency list my-chart
NAME VERSION REPOSITORY STATUS
common 0.12.6 file://../common/ ok

如何获取INSTALLED 图表的依赖项,即通过从实际部署的版本中检索此信息? (即在我的集群上运行的那个)

最佳答案

不可以,您只能使用您提供的文档来检索此信息。你应该:

  • 使用 $ helm pull repo/name --untar 下载 chart(如果你已经有了,请跳过)
  • 进入图表目录
  • 调用命令:$ helm dependency list my-chart

或者您可以检查 requirements.yaml对于 helm2 或 Chart.yaml对于 helm3,但你会发现只有传递依赖:

All applications, maybe with the exception of the most trivial,usually depend on other runtime components, such as web servers,caches, databases, etc. Helm supports modularization via a dependencymechanism, which allows to formally specify, manage and deploydependencies as part of a Helm release. A Helm chart may declaredependencies, which are other Helm charts published in externalrepositories, conveniently packaged by people who presumably know therespective components well. The simples possible example is a chart A-- the dependent - that declared its reliance on a chart B - the dependency - by specifying chart B's “coordinates” (name, version andrepository URL) as part of its own metadata. The exact way in whichthe dependencies are declared has evolved across Helm releases. ForHelm 2 charts, the dependencies are declared in a dedicatedrequirements.yaml file, while for Helm 3 chart, the dependencies aredeclared as part of the chart manifest Chart.yaml. However, the waythe dependencies are processed during installation has remained thesame.

好文章:Helm Dependencies

关于kubernetes - 列出已安装图表的 helm 依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66062090/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com