从我的应用程序Helm图表中配置第三方Helm图表

Rya*_*all 2 kubernetes kubernetes-helm

我似乎在任何地方都找不到任何明确的信息,但是在Helm图表中是否可能需要第三方(例如stable/jenkins)并指定配置值?

我看到的所有示例都是helm install直接运行命令的,但是我希望能够将其配置为应用程序的一部分。

Rya*_*all 5

作为回答,@ desaintmartin在Slack中向我介绍了这些文档:

这使我找到了要查找的特定部分,通过指定图表名称作为父项中的键,父图表可以覆盖子图表values.yaml

在申请表中requirements.yaml

dependencies:
- name: jenkins
  # Can be found with "helm search jenkins"
  version: '0.18.0'
  # This is the binaries repository, as documented in the GitHub repo
  repository: 'https://kubernetes-charts.storage.googleapis.com/'
Run Code Online (Sandbox Code Playgroud)

跑:

helm dependency update
Run Code Online (Sandbox Code Playgroud)

在申请表中values.yaml

# ...other normal config values

# Name matches the sub-chart
jenkins: 
  # This will be override "someJenkinsConfig" in the "jenkins" sub-chart
  someJenkinsConfig: value 
Run Code Online (Sandbox Code Playgroud)