从我的应用程序 Helm chart 配置第三方 Helm chart
Configuring third-party Helm charts from my application Helm chart
我似乎无法在任何地方找到任何明确的信息,但是在 Helm chart 中是否可以要求第三方,例如 stable/jenkins
,并指定配置值?
我看到的所有示例都是直接针对 运行 helm install
命令的,但我希望能够将其配置为我的应用程序的一部分。
作为回答,@desaintmartin 在 Slack 中向我介绍了这些文档:
这让我找到了 specific part I was looking for,其中父图表可以通过将图表名称指定为父图表中的键来覆盖子图表 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/'
运行:
helm dependency update
应用图表中的values.yaml
:
# ...other normal config values
# Name matches the sub-chart
jenkins:
# This will be override "someJenkinsConfig" in the "jenkins" sub-chart
someJenkinsConfig: value
我似乎无法在任何地方找到任何明确的信息,但是在 Helm chart 中是否可以要求第三方,例如 stable/jenkins
,并指定配置值?
我看到的所有示例都是直接针对 运行 helm install
命令的,但我希望能够将其配置为我的应用程序的一部分。
作为回答,@desaintmartin 在 Slack 中向我介绍了这些文档:
这让我找到了 specific part I was looking for,其中父图表可以通过将图表名称指定为父图表中的键来覆盖子图表 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/'
运行:
helm dependency update
应用图表中的values.yaml
:
# ...other normal config values
# Name matches the sub-chart
jenkins:
# This will be override "someJenkinsConfig" in the "jenkins" sub-chart
someJenkinsConfig: value