【问题标题】:Pass variable down to dependency helm chart将变量传递到依赖 helm 图表
【发布时间】:2017-12-04 19:29:53
【问题描述】:

我有一个带有可选组件的舵图。似乎支持可选组件的首选方法是将它们分解为单独的图表并使用标签切换它们。

我试过这个,但我的可选组件需要知道图表其余部分的变量(特定服务的地址)。这会导致事情破裂

Error: render error in "subchart/foo-deployment.yaml": 
template: superchart/templates/_helpers.tpl:14:40: 
executing "superchart.variable <.Values.variable...>: 
can't evaluate field name in type interface {}

【问题讨论】:

    标签: kubernetes-helm


    【解决方案1】:

    我相信您可以在安装图表时执行此操作

    helm install --set option1=value1 --name my-release stable/dask

    更多信息: https://docs.helm.sh/helm/#helm-install

    问题: https://github.com/kubernetes/helm/issues/944

    公关: https://github.com/kubernetes/helm/pull/982

    【讨论】:

    • 在我的情况下,我想要传递的变量是其他容器之一的地址,因此是从自动生成的部署名称构造的。它的值看起来像happy-panda-scheduler:8786
    猜你喜欢
    • 2020-09-07
    • 2020-07-07
    • 1970-01-01
    • 2021-02-28
    • 2019-06-23
    • 1970-01-01
    • 2023-01-24
    • 2021-07-28
    • 2019-05-26
    相关资源
    最近更新 更多