Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit the Configurations of a Helm Chart?

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?

like image 941
zain ul abedin Avatar asked Oct 06 '19 11:10

zain ul abedin


People also ask

How do I upgrade the helm chart?

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

How do I add default values to a helm chart?

This file can contain default values. Chart users may supply a YAML file that contains values. This can be provided on the command line with helm install. When a user supplies custom values, these values will override the values in the chart’s values.yaml file.

How are Helm charts created and deployed?

Charts are created as files laid out in a particular directory tree, then they can be packaged into versioned archives to be deployed. This document explains the chart format, and provides basic guidance for building charts with Helm. A chart is organized as a collection of files inside of a directory.

What are Helm charts in Kubernetes?

Helm Charts help you define, install, and upgrade complex Kubernetes applications. In this article, you’ll learn how Helm Charts fit into a Kubernetes workflow and review examples for how they can be used to benefit your organization. DevOps engineers frequently use package managers like yum, Homebrew, and Chocolatey to install software.


2 Answers

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.

like image 200
Jakub Avatar answered Oct 25 '22 16:10

Jakub


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
like image 22
shawnzhu Avatar answered Oct 25 '22 15:10

shawnzhu