如何编辑 Helm Chart 的配置?

How to edit the Configurations of a Helm Chart?

大家好,

我部署了一个基于kubeadm的Kubernetes集群,为了实现基于自定义指标的Horizo​​ntalPodAutoscaling,我通过Helm部署了prometheus-adpater

现在,我想编辑 prometheus-adpater 的配置,因为我是 Helm 的新手,所以我不知道该怎么做。那么你能指导我如何编辑部署的 helm 图表吗?

我猜helm upgrade就是你要找的。

This command upgrades a release to a specified version of a chart and/or updates chart values.

所以如果你已经部署了prometheus-adapter,你可以使用命令helm fetch

Download a chart from a repository and (optionally) unpack it in local directory

您将拥有所有 yaml,您可以编辑它们并通过 helm upgrade 升级您当前部署的图表

我找到了一个example,应该可以更准确地向您解释。

您正在尝试自定义已安装的图表。请使用本指南 Customizing the Chart Before Installing.

关键部分:

There are two ways to pass configuration data during install:

  • --values (or -f): Specify a YAML file with overrides. This can be specified multiple times and the rightmost file will take precedence
  • --set name=value: Specify overrides on the command line