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
47
votes
4 answers

How to render only selected template in Helm?

I have ~20 yamls in my helm chart + tons of dependencies and I want to check the rendered output of the specific one. helm template renders all yamls and produces a hundred lines of code. Is there a way (it would be nice to have even a regex) to…
sacherus
  • 1,614
  • 2
  • 20
  • 27
47
votes
1 answer

Set value in dependency of Helm chart

I want to use the postgresql chart as a requirements for my Helm chart. My requirements.yaml file hence looks like this: dependencies: - name: "postgresql" version: "3.10.0" repository: "@stable" In the postgreSQL Helm chart I now want to…
47
votes
8 answers

Helm: could not find tiller

I'm getting this error message: ➜ ~ helm version Error: could not find tiller I've created tiller project: ➜ ~ oc new-project tiller Now using project "tiller" on server "https://192.168.99.100:8443". Then, I've created tiller into tiller…
Jordi
  • 20,868
  • 39
  • 149
  • 333
46
votes
1 answer

helm lint: INFO Chart.yaml: icon is recommended

Running helm lint I get: I get: [INFO] Chart.yaml: icon is recommended Where do I set the icon?
Chris G.
  • 23,930
  • 48
  • 177
  • 302
45
votes
15 answers

How can I list all available charts under a helm repo?

I have a helm repo: helm repo list NAME URL stable https://kubernetes-charts.storage.googleapis.com local http://127.0.0.1:8879/charts and I want to list all the charts available or search the charts under stable helm…
uberrebu
  • 3,597
  • 9
  • 38
  • 73
44
votes
2 answers

google-chrome Failed to move to new namespace

Im trying to run google-chrome --headless inside a docker container as a non-root user to execute some tests. Everytime Im trying to start it, it throws following error: google-chrome --headless Failed to move to new namespace: PID namespaces…
44
votes
4 answers

helm chart error can't evaluate field Values in type interface {}

I know this is some kind of syntax/yaml structure related error but the message is so cryptic I have no idea what the issue is: Error: render error in "mychart/templates/ingress.yaml": template: mychart/templates/ingress.yaml:35:37: executing…
red888
  • 27,709
  • 55
  • 204
  • 392
42
votes
9 answers

Kubernetes Readiness probe failed error

While running my container on kubernetes using helm upgrade command, I am getting this error: 'Readiness probe failed: Get http://172.17.0.6:3003/: dial tcp 172.17.0.6:3003: getsockopt: connection refused'. My docker image is for a node.js…
Karan Sodhi
  • 569
  • 1
  • 4
  • 7
41
votes
3 answers

Kubernetes - How to define ConfigMap built using a file in a yaml?

At present I am creating a configmap from the file config.json by executing: kubectl create configmap jksconfig --from-file=config.json I would want the ConfigMap to be created as part of the deployment and tried to do this: apiVersion: v1 kind:…
Chillax
  • 4,418
  • 21
  • 56
  • 91
38
votes
7 answers

helm not creating the resources

I have tried to run Helm for the first time. I am having deployment.yaml, service.yaml and ingress.yaml files alongwith values.yaml and chart.yaml. deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: abc namespace: xyz …
harry123
  • 760
  • 1
  • 7
  • 22
38
votes
7 answers

Helm 3 install for resouces that exist

when running helm install (helm 3.0.2) I got the following error: Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: PodSecurityPolicy, namespace: , name:…
JME
  • 881
  • 2
  • 11
  • 23
37
votes
2 answers

ingress.yaml template returns error in renderring --> nil pointer evaluating interface {}.service

I am installing a helm chart which has a ingress.yaml template. I get this error: Error: render error in "chartmuseum/templates/ingress.yaml": template: chartmuseum/templates/ingress.yaml:35:22: executing "chartmuseum/templates/ingress.yaml" at…
RAMNEEK GUPTA
  • 713
  • 1
  • 6
  • 13
37
votes
5 answers

How to SSH into a Kubernetes Node or Server

How to SSH into a Kubernetes Node or Server hosted on AWS? I have hosted a Kubernetes Server and Node on AWS. I'm able to see the nodes and server from my local laptop with the kubectl get node command. I need to create a persistent volume for my…
anish anil
  • 2,299
  • 7
  • 21
  • 41
36
votes
2 answers

How to set a different namespace for child helm charts?

When you install a chart with a child chart that doesn't specify a namespace, Helm will use the one specified on command line via --namespace. Is it possible to override this flag for a specific child chart? For example if I have chart A which…
krishonadish
  • 959
  • 2
  • 9
  • 18
35
votes
4 answers

Helm upgrade fails with error: expects " or n, but found t

I'm trying to add a new pod to my helm chart, it passes validation (helm lint) but fails at last stage of deployment: Mon Dec 16 10:01:58 2019 INFO Running helm install/upgrade for xyz-stg UPGRADE FAILED Error: "" is invalid: patch: Invalid…
van_folmert
  • 4,257
  • 10
  • 44
  • 89