【问题标题】:Configuring third-party Helm charts from my application Helm chart从我的应用程序 Helm 图表配置第三方 Helm 图表
【发布时间】:2018-09-28 10:01:27
【问题描述】:

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

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

【问题讨论】:

    标签: kubernetes kubernetes-helm


    【解决方案1】:

    作为回答,@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 
    

    【讨论】:

    猜你喜欢
    • 2020-04-21
    • 2020-12-15
    • 2020-05-06
    • 2021-05-02
    • 2019-11-13
    • 2020-03-19
    • 1970-01-01
    • 2021-12-11
    • 1970-01-01
    相关资源
    最近更新 更多