How to edit the Configurations of a Helm Chart?

10/6/2019

Hi everyone,

I have deployed a Kubernetes cluster based on kubeadm and for the purpose of performing HorizontalPodAutoscaling based on the Custom Metrics, I have deployed prometheus-adpater through Helm.

Now, i want to edit the configuration for prometheus-adpater and because i am new to Helm, i don't know how to do this. So could you guid me how to edit the deployed helm charts?

-- zain ali
autoscaling
kubernetes
kubernetes-helm
metrics
prometheus

2 Answers

10/6/2019

I guess helm upgrade is that are you looking for.

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

So if you have deployed prometheus-adapter, you can use command helm fetch

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

You will have all yamls, you can edit them and upgrade your current deployed chart via helm upgrade

I found an example, which should explain it to you more precisely.

-- jt97
Source: StackOverflow

11/30/2019

You're trying to customize an installed chart. Please use this guide Customizing the Chart Before Installing.

The key parts:

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
-- shawmzhu
Source: StackOverflow