【问题标题】:How to convert the existing helm chart to a set of Kubernetes manifests?如何将现有的 helm chart 转换为一组 Kubernetes manifests?
【发布时间】:2020-10-06 03:27:00
【问题描述】:

如何只获取一组 Kubernetes yaml 文件,这些文件填充了默认的 Helm 图表参数,以便我可以使用 kubectl apply -f ./manifests 来运行所需的服务?

【问题讨论】:

    标签: kubernetes kubernetes-helm


    【解决方案1】:

    您可以使用helm template 命令:

    在本地渲染图表模板并显示输出。

    通常会在集群中查找或检索的任何值 将在本地伪造。此外,没有任何服务器端测试 图表有效性(例如是否支持 API)已完成。

    helm template [NAME] [CHART] [flags]

    例如:

    helm template my-chart stable/chart --output-dir /home/user/my-chart

    那么你可以使用kubectl apply -f /home/user/my-chart

    【讨论】:

      猜你喜欢
      • 2019-10-31
      • 2021-03-28
      • 2018-04-15
      • 2020-04-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      • 1970-01-01
      • 2020-01-26
      相关资源
      最近更新 更多