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

Is there any option to tell to helm to not wait till post install hook is completed?

We are using helm to deploy k8s project/set of pods. Till now "helm install" comes out immediately after loading scripts. We have added "post install" hook and the "helm install" waits for some time and comes out with error "timed out waiting for…
Chandu
  • 1,837
  • 7
  • 30
  • 51
2
votes
2 answers

Mounting a configuration file structure in job pod

In our application we will have a Kubernetes job that will bootstrap microservices based on a set of (legacy) configuration files. These are in the legacy application packaged as a file structure, and we'd like to keep this so that we don't need to…
tobier
  • 646
  • 1
  • 5
  • 21
2
votes
2 answers

Can not deploy helm chart in Terraform (Kubernetes cluster unreachable)

I am started GKE cluster using Terraform (link), Now I am trying to release the helm charts on the cluster, and tried for "Nginx Ingress" helm chart which is as follow: resource "helm_release" "ingress" { name = "ingress" repository =…
2
votes
1 answer

Kubernetes automatically adds the storageClassName to PVC

I have a helm chart that contains PV and PVC to mount NFS volumes and this works fine. I need to install this helm chart on a new cluster that has very strict and limited security measures and I also see that my pods are pending because they can't…
AVarf
  • 4,481
  • 9
  • 47
  • 74
2
votes
1 answer

Helm throwing validation error for Deployment.spec.strategy

I'm trying to add deployment strategy as rolling deployment. But I'm not sure why this is not working. We have the same config in OpenShift which runs without any issue, but in Kubernetes this fails. deployment.yaml spec: {{- if eq…
pri05
  • 75
  • 1
  • 11
2
votes
1 answer

What does the syntax `default (dict) .Values.outer.inner` mean in a helm template?

Given values.yaml: outer: inner: someKey: false What does the following syntax in a helm template file mean? {{- if index (default (dict) .Values.outer.inner) "someKey" }} {{- .... }} {{- end }} From context, I can infer what I think…
jordanpg
  • 6,386
  • 4
  • 46
  • 70
2
votes
0 answers

Gitlab CI/CD with Kubernetes kind

I created Kind cluster with following config file and was connected to private hosted gitlab. kind: Cluster networking: apiServerAddress: "X.X.X.X" # add to the apiServer certSANs the name of the docker (dind) service in order to be able to reach…
Bilal Ali Jafri
  • 915
  • 1
  • 6
  • 17
2
votes
1 answer

Make jenkins spawn agents on gke in different node pools

I have a jenkins and most jobs do some ansible work and need 300mb of ram tops with 50m cpu, but I'v got few massive integration testing jobs that take 14000m cpu(14vcpus) or more, i know there is there a way to have 2 node pools (one with small…
2
votes
1 answer

helm install with --set ends in an error "v1.ObjectMeta.Annotations: ReadString: expects " or n, but found t, error found in #10 byte"

I'm trying to run a helm chart with: helm upgrade --install artifactory-int --set ingress.annotations.'kubernetes\.io\/tls-acme'="true" But this drops an error message: Ingress in version "v1beta1" cannot be handled as a Ingress:…
chuet
  • 43
  • 1
  • 4
2
votes
1 answer

How can I enable SASL in Kafka-Connect (within Cluster)

I have downloaded cp-kafka-connect and deployed in my k8s cluster with a KafKa broker which accept secure connections. (SASL) I would like to enable security(SASL) for Kafka Connect. I am using ConfigMap to mount the configuration file named…
2
votes
3 answers

How to ensure every kubernetes node running 2 or more pods?

I know that DaemonSets ensure only one pod running in every node. I know that ReplicaSets ensure the number of pod replicas defined are running but doesn't ensure every node gets a pod. My requirement is every Node should be occupied by one POD and…
2
votes
1 answer

kubernetes pull of jenkins image giving Imagepullbackoff

Trying to pull jenkins image using helm install stable/jenkins --values jenkins.values --name jenkins to into my local cluster,but every time, when i do build pod its gives the error as following. ` [root@kube-master tmp]# kubectl describe pod…
2
votes
1 answer

How to share persistent volume of a StatefulSet with another StatefulSet?

I have a StatefulSet-1 running with 3 replicas & each pod writing logs to its own persistent volume say pv1,pv2,pv3 (achieved using volumeClaimTemplates:) I have another StatefulSet-2 running with 3 replicas & I want each POD of StatefulSet-2 access…
2
votes
3 answers

helm unable to connect to tiller in GKE

I was also encountering the error message when running helm version or helm list kubectl port-forward -n kube-system tiller-deploy-xxxxxxxxxxxxxxx 44134 error: error upgrading connection: error dialing backend: No SSH tunnels currently open. Were…
2
votes
1 answer

Kubernetes Prevent PVC from being deleted with "Kubectl delete -f PVC_NAME"

Situation: I have a problem with my PVC. I need to use helm chart to update our monitoring. But we dont have tiller, so we have to use helm template for creating our yaml files, so that we are able to deploy it with kubectl. We need sometimes to…
goku736
  • 372
  • 2
  • 16