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
2
votes
1 answer

How to set environment variables in helm?

I have the following deployment definition: ... containers: - name: {{ .Release.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{ if…
softshipper
  • 32,463
  • 51
  • 192
  • 400
2
votes
1 answer

Error installing TimescaleDB with K8S / Helm : MountVolume.SetUp failed for volume "certificate" : secret "timescaledb-certificate" not found

I just tried to install timescaleDB Single with Helm in minikube on Ubuntu 20.04. After installing via: helm install timescaledb timescaledb/timescaledb-single --namespace espace-client-v2 I got the message: ➜ ~ helm install timescaledb…
Juliatzin
  • 18,455
  • 40
  • 166
  • 325
2
votes
0 answers

syntax error: expected , but found '-' (syntax)

I have two environmental variables defined which are working fine. Apart from this, I have one JSON object serviceAccount which stored in manually created secret firebase-connector. As soon as I add this second part I got an error. I followed syntax…
Pramod
  • 69
  • 1
  • 10
2
votes
1 answer

SPRING_PROFILES_ACTIVE and Helm

I have a very strange scenario playing out right now with my configs where environment vars don't seem to be honored by the container. I'm trying to set the active spring profile via the deployment.xml file like this: ... containers: - env: -…
user1170235
  • 189
  • 3
  • 9
2
votes
1 answer

Basic Helm Dependency Clarification

To ease local development/testing, I have an umbrella chart that deploys all my sub-charts. Those applications make use of resources (e.g. MongoDB, Kafka, etc) and I want to make sure that if you are installing the umbrella chart to a cluster, it…
Tyler Murry
  • 2,705
  • 3
  • 29
  • 46
2
votes
1 answer

Helm to ConfigMap to install fluentd plugins, and getting this error on Jenkins any hint?

Team, using jenkins for helm deploy of a chart where plugins are installed as part of it. Am, using ConfigMap to install fluentd plugins, and getting this error on Jenkins any hint? Error: UPGRADE FAILED: unable to decode "": Object 'Kind' is…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
2
votes
4 answers

Can not override `replicas` of deployment k8s

I have met a problem like this: Firstly, I using helm to create a release nginx: helm upgrade --install --namespace test nginx bitnami/nginx --debug LAST DEPLOYED: Wed Jul 22 15:17:50 2020 NAMESPACE: test STATUS: DEPLOYED RESOURCES: ==>…
Tho Quach
  • 1,347
  • 10
  • 26
2
votes
2 answers

etcd DB cluster on kubernetes misbehaving

In my project we have etcd DB deployed on Kubernetes (this etcd is for application use, separate from the Kubernetes etcd) on on-prem. So I deployed it using the bitnami helm chart as a statefulset. Initially, at the time of deployment, the number…
Mr Kashyap
  • 562
  • 1
  • 5
  • 16
2
votes
0 answers

Setting values for nested elements in helm charts

I'm working on the airflow Helm chart and I'm trying to spin up a local environment with helm, minikube and docker. When I helm install airflow through their example/custom-values.yaml, things look good. I would like now to add an extra container to…
AlessioG
  • 576
  • 5
  • 13
  • 32
2
votes
2 answers

How do I add sidecar containers on the prometheus stable Helm Charts values.yaml file?

I'm currently using the prometheus (NOT prometheus-operator, due to historical reasons) Helm charts in our on-premise Kubernetes cluster, and I'd like to deploy the Thanos sidecar. How do I add the sidecar containers in the values.yaml file? Are…
jrlonan
  • 45
  • 1
  • 5
2
votes
0 answers

How to init several PostgreSQL DBs on bare metal Kubernetes via Helm

I'm trying to create several databases after installation of Helm chart bitnami/postgresql. I added setting initdbScripts into helm install command: helm install postgresql bitnami/postgresql --namespace=namespace_name \ --set…
Alex A
  • 90
  • 10
2
votes
1 answer

How does kubectl logs -f affect CPU and RAM usage?

After some research, I found out that, kubernetes logs -f reads logs from files, i.e, .log files to which docker containers running inside the pods have written the logs. In my case, docker container is an application that I have written. Now,…
2
votes
2 answers

HELM UPGRADE ISSUE: spec.template.spec.containers[0].volumeMounts[2].name: Not found: "NAME"

I have been trying to create a POD with HELM UPGRADE: helm upgrade --values=$(System.DefaultWorkingDirectory)/_NAME-deploy-CI/drop/values-NAME.yaml --namespace sda-NAME-pro --install --reset-values --debug --wait NAME . but running into below…
RCat
  • 157
  • 2
  • 5
  • 17
2
votes
0 answers

configMap volume mount failure

I've got a question, guys. Any idea what would cause this sort of error. MountVolume.SetUp failed for volume "PNIF-uid" : failed to sync configmap cache: timed out waiting for the condition. The pod doesn't crash-loop by the way, which is what I…
Hammed
  • 1,457
  • 1
  • 24
  • 37
2
votes
2 answers

Set namespace of service-discovery for prometheus-operator installed by helm

I've installed the prometheus-operator by helm 3: helm install prom stable/prometheus-operator --namespace monitor But I also want to set the namespace for the service discovery which is "default" in the standard installation. When I query the…
Matthias M
  • 12,906
  • 17
  • 87
  • 116