从我的应用程序Helm图表中配置第三方Helm图表 [英] Configuring third-party Helm charts from my application Helm chart

查看:140
本文介绍了从我的应用程序Helm图表中配置第三方Helm图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I can't seem to find any clear information on this anywhere, but is it possible in a Helm chart to require a third party, such as stable/jenkins, and specify configuration values?

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

All the examples I see are for running the helm install command directly but I would like to be able to configure it as part of my application.

推荐答案

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

In answer, @desaintmartin referred me to these documents in Slack:

  • Subcharts and Globals
  • Requirements
  • Helm Dependencies

这使我找到了我正在寻找的特定部分,其中父图表可以通过将图表名称指定为父values.yaml中的键来覆盖子图表.

This led me to find the specific part I was looking for, where the parent chart can override sub-charts by specifying the chart name as a key in the parent 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图表中配置第三方Helm图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆