Questions tagged [kubernetes-helm]

Helm is a tool for managing packages (i.e. charts) of templated Kubernetes resources.

Helm simplifies deploying a set of related Kubernetes resources by defining a standard directory structure to hold a set of YAML files, by adding a templating system to produce the actual Kubernetes resources, and by allowing prepackaged applications or components to be directly imported or installed.

The Go text/template engine allows values to be filled into Kubernetes YAML files. In a typical chart, templates/database_statefulset.yaml might contain the fragment:

containers:
  - name: mysql
    image: "{{ .Values.image }}:{{ .Values.tag }}"

values.yaml would provide default values for these settings:

image: mysql
tag: latest

When you install the chart, you can provide specific values for these settings.

helm install . --set tag=5.6

This tag is appropriate for most questions about Helm, including questions about the templating system and the command-line tool. It will frequently also be appropriate to tag questions as related, and many questions relate to the more general system. Do not tag questions as ; that is for a different tool.

External links

6042 questions
18
votes
4 answers

prometheus operator - enable monitoring for everything in all namespaces

I want to monitor a couple applications running on a Kubernetes cluster in namespaces named development and production through prometheus-operator. Installation command used (as per Github) is: helm install prometheus-operator…
18
votes
1 answer

Helm Charts with multiple lists in multiple values files

I have a values.yaml that has the following: abc: env: - name: name01 value: value01 - name: name02 value: value02 and I have another values file values-dev.yaml that I add when installing using -f and it has: abc: env: - name:…
arash moeen
  • 4,533
  • 9
  • 40
  • 85
18
votes
3 answers

How can we create service dependencies using kubernetes

I have 2 services. One containing 2 pod replicas for a web application which is dependent on another backend service having pod (2 replicas) for MySQL containers. The web application uses environment variables set by backend DB service. I've all the…
Gaurav Kumar
  • 241
  • 1
  • 4
  • 12
18
votes
2 answers

Is there a way to get ordinal index of a pod with in kubernetes statefulset configuration file?

We are on Kubernetes 1.9.0 and wonder if there is way to access an "ordinal index" of a pod with in its statefulset configuration file. We like to dynamically assign a value (that's derived from the ordinal index) to the pod's label and later use it…
Raj N
  • 181
  • 1
  • 1
  • 3
18
votes
3 answers

How an helm chart have an attribute with value contain {{ }}

In a helm chart, we can define value as something like {{ Values.name }}, which will be replaced by the real value defined in values.yaml. But if the original value has the similar format such as {{name}}, when trying to install that chart, it will…
Marco
  • 191
  • 1
  • 1
  • 4
18
votes
2 answers

How do you add scrape targets to a Prometheus server that was installed with Kubernetes-Helm?

Background I have installed Prometheus on my Kubernetes cluster (hosted on Google Container Engineer) using the Helm chart for Prometheus. The Problem I cannot figure out how to add scrape targets to the Prometheus server. The prometheus.io site…
17
votes
1 answer

helm - how to iterate over map with complex values

In a helm chart want to iterate over a map that contains structured values. I do know how to iterate over a map with simple string values. I also can iterate over an array that contains structured values (not shown here). But I did not manage to…
Donat
  • 4,157
  • 3
  • 11
  • 26
17
votes
13 answers

Helm 3 chart install error: error validating data: apiVersion not set

I have a simple helm chart that will deploy an application to my local copy of kubernetes via docker desktop. If I use kubectl to deploy the yaml one file at a time things work correctly. However, when I try to create a helm chart for easier…
Dblock247
  • 6,167
  • 10
  • 44
  • 66
17
votes
9 answers

Error: error installing: the server could not find the requested resource HELM Kubernetes

What I Did: I installed Helm with curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash helm init --history-max 200 Getting an error: $HELM_HOME has been configured at /root/.helm. Error: error installing: the server…
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
17
votes
0 answers

How to override a dependency chart version defined in requirements.yaml in helm?

Looks like there is a request for this (link below) but the issue is still in open state: https://github.com/helm/helm/issues/2205 I was wondering if there is any workaround so that I can pull a chart from chart museum and override one or more…
xbmono
  • 2,084
  • 2
  • 30
  • 50
17
votes
2 answers

Helm chart deployment and private docker repository

I have a private Docker repo with bunch of images. I am using Helm to deploy them to a Kubernetes cluster. Helm values.yaml contains the repository credentials: image: repository: tag: pullPolicy: IfNotPresent …
Jayp
  • 782
  • 2
  • 6
  • 21
17
votes
1 answer

Draft and Helm vs Ksonnet?

As I understand all of these tools Draft,Helm and Ksonnet have overlapping functionality such as creating a chart as well as deploying kubernetes configurations. I understand that purpose of these tool would be to describe and configure the…
Suresh Vishnoi
  • 17,341
  • 8
  • 47
  • 55
17
votes
1 answer

How to view revision history with values provided in kubernetes-helm

helm history but there's no option to see what values are used in each release history. How can I do that?
nmiculinic
  • 2,224
  • 3
  • 24
  • 39
17
votes
3 answers

How do I load multiple templated config files into a helm chart?

So I am trying to build a helm chart. in my templates file I've got a file like: apiVersion: v1 kind: ConfigMap metadata: name: config-map data: {{ Do something here to load up a set of files | indent 2 }} I have another directory in my chart:…
Nathan Feger
  • 19,122
  • 11
  • 62
  • 71
16
votes
9 answers

helm fails with failed to create: Secret "sh.helm.release.v1.(release-name).v1" is invalid: data: Too long: must have at most 1048576 character

I am trying to install a helm release, using following command helm upgrade --install --reset-values {release-name} ../chart --namespace test01 --values /tmp/values737957648 The chart is not packaged is kept in the expanded form. This fails with…
Ruchir Bharadwaj
  • 1,132
  • 4
  • 15
  • 31