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
24
votes
6 answers

Rabbit mq - Error while waiting for Mnesia tables

I have installed rabbitmq using helm chart on a kubernetes cluster. The rabbitmq pod keeps restarting. On inspecting the pod logs I get the below error 2020-02-26 04:42:31.582 [warning] <0.314.0> Error while waiting for Mnesia tables:…
23
votes
2 answers

Kubernetes ReplicaFailure FailedCreate but no events

I have deployment and a replica set in Kubernetes that are failing to create a pod. I've tried kubectl describe deployment deployment-name and kubectl describe replicaset replicaset-name And they both say Conditions: Type Status …
gary69
  • 3,620
  • 6
  • 36
  • 50
23
votes
2 answers

What is, and what use cases have the dot "." in helm charts?

im currently going through the docs of helm, and there have been at least 3 different uses for the dot (.), is there any specific definition for it? and does it have something in common with the bash use (actual folder/files)? some cases in the…
Juan.
  • 652
  • 2
  • 9
  • 20
23
votes
4 answers

helmfile sync vs helmfile apply

sync sync all resources from state file (repos, releases and chart deps) apply apply all resources from state file only when there are changes sync The helmfile sync sub-command sync your cluster state as described in your helmfile ...…
mhyousefi
  • 1,064
  • 2
  • 16
  • 30
23
votes
2 answers

Reference previously declared value in HELM values.yaml

I have a HELM Chart with a few requirements (i.e. subcharts). When deploying that chart, I use a values.yaml containing all the values for both the main chart and the subcharts : globalFoo: "bar" subchart1: foo: subchart1-{{ globalFoo…
Neumann
  • 551
  • 2
  • 6
  • 17
23
votes
2 answers

How to pass the content of a file to Helm values.yaml

I want to use Helm chart of RabbitMQ to set up a cluster but when I try to pass the configuration files that we have at the moment to the values.yaml it doesn't work. The command that I use: helm install --dry-run --debug stable/rabbitmq --name…
AVarf
  • 4,481
  • 9
  • 47
  • 74
23
votes
1 answer

helm iterate over range

I can not find a way to iterate over a range in helm templating. I have the next definition in my values.yaml: ingress: app1: port: 80 hosts: - example.com app2: port: 80 hosts: - demo.example.com -…
aRTURIUS
  • 1,230
  • 2
  • 13
  • 31
23
votes
9 answers

How not to overwrite randomly generated secrets in Helm templates

I want to generate a password in a Helm template, this is easy to do using the randAlphaNum function. However the password will be changed when the release is upgraded. Is there a way to check if a password was previously generated and then use the…
Mikhail Janowski
  • 4,209
  • 7
  • 28
  • 40
23
votes
4 answers

How to reference a value defined in a template in a sub-chart in helm for kubernetes?

I'm starting to write helm charts for our services. There are two things I'm not sure how they are supposed to work or what to do with them. First: the release name. When installing a chart, you specify a name which helm uses to create a release.…
wemu
  • 7,952
  • 4
  • 30
  • 59
22
votes
3 answers

Where are helm charts stored locally?

I'm trying to make changes to the values.yaml of a helm chart from a repository. After adding the repository and successfully installing the chart locally, I cannot find it. I realize this question asks the same, but the answer there does not work…
dfvdgrsdfgsdfg
  • 231
  • 1
  • 2
  • 3
22
votes
3 answers

Extra secrets created when helm is used

I created a helm chart which has secrets.yaml as: apiVersion: v1 kind: Secret type: Opaque metadata: name: appdbpassword stringData: password: password@1 My pod is: apiVersion: v1 kind: Pod metadata: name: expense-pod-sample-1 spec: …
Bhargav Behara
  • 285
  • 1
  • 4
  • 10
22
votes
3 answers

Insert multiline json string into helm template for base64 encoding

I am trying to insert multiline json string into helm template for base64 encoding required for Kubernetes secret. Goals: helm value is injected into json string multi-line json string must be base64 encoded using b64enc myfile1.json does not work…
Steve
  • 863
  • 3
  • 9
  • 21
22
votes
4 answers

How to check reason for Helm install failure

I wanted to bring up zookeeper using helm install ., but it says Error: release failed: services "zookeeper" already exists. I don't see anything if I execute helm listtoo. Before installing the service, I checked using helm list if it…
Bitswazsky
  • 4,242
  • 3
  • 29
  • 58
22
votes
2 answers

Kubernetes helm, Files.Get and variables

I'm trying to dynamically specify the name of a file to include in a configmap.yaml, using the Helm templating language. Here is an example: {{- $filename := .Values.KRB5_REALM -}} apiVersion: v1 data: # When the config map is mounted as a volume,…
Magick
  • 4,603
  • 22
  • 66
  • 103
22
votes
1 answer

Helm upgrade with same chart version, but different Docker image tag

I have a question about a Helm upgrade. I'm working on a chart foo-1.0.0 which deploys a pod with a docker image bar:4.5.1. I have a release "myrelease" based on this chart foo in version 1.0.0 (with a bar:4.5.1 running inside). Now, I make a fix on…
Fred Mériot
  • 4,157
  • 9
  • 33
  • 50