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
0 answers

Helm: break loop (range) in template

I have an application which is hosted on multiple environments and helm chart is used to deploy the application. I have values.yaml- app: component: mobile type: web env: prd --> (It will override with external parameters while deployment…
2
votes
1 answer

Terraform - How to Create a GKE Cluster and Install Helm Charts?

Goal I have a specific workflow to set up a fresh Kubernetes cluster on Google Cloud. And I want to automate the process with Terraform. Those are the steps: Create cluster gcloud beta container --project "my-google-project" clusters create…
2
votes
1 answer

How to set java environment variables in a helm chart?

What is the best practice to set environment variables for a java app's deployment in a helm chart so that I can use the same chart for dev and prod environments? I have separate kubernetes deployments for both the environments. spec: …
gsdk
  • 57
  • 2
  • 8
2
votes
1 answer

Deployment via google-kubernetes-engine: Internal Server Error[500] (Google Cloud Platform)

I am using Helm Charts for deployments on google-kubernetes-engine and using rolling-update in it. Currently I am running 10 pods. When I make deployment using rolling-update, I expect a new pod comes up and traffic is stopped from the old pod…
2
votes
0 answers

How to handle "docker-in-docker" problem when using Jenkins inside K8S

New to Kubernetes, a little complex question needs help. Background Using Jenkins in GKE (Google Kubernetes Engine) Want to use jenkins-docker plugin to provide the specific test environment for each type of tests Don't want to mixin docker binary…
2
votes
2 answers

How to configure Mattermost Plugins

I have deployed Mattermost Team Edition from the Helm Chart onto my k8s Cluster and it's working great. The issue is that the config.json file is mounted as a secret, so configuration can't be done from the UI but in the config.json that is part of…
2
votes
1 answer

Custom helm chart - helm dep update fails with Error: stable/nginx-ingress chart not found in repo https://kubernetes-charts.storage.googleapis.com

How can I add stable/nginx-ingress as a dependency to my custom helm chart? After trying a few different urls for the repository, I still have no luck. Steps Created a new helm chart with helm create and editing the Chart.yaml to be apiVersion:…
Stephen
  • 7,994
  • 9
  • 44
  • 73
2
votes
1 answer

Configuring Vault-Helm PVC

I'm fairly new to K8S and i've been trying to implement vault on k8s. I've been trying to deploy Hashicorp Vault on K8S using Helm as written on their website. -- https://www.vaultproject.io/docs/platform/k8s/helm/run/ --…
dtuaev25
  • 25
  • 1
  • 6
2
votes
1 answer

Can a test / updated helm chart NOTES.txt file be tested without rebuilding the chart?

I am looking to test a change in a Helm chart NOTES.txt file and intended to run a helm install with the --dry-run option, but I can not see how to specify an updated NOTES.txt file on my local file system (whether as part of a real or dry run…
caesar
  • 47
  • 1
  • 9
2
votes
0 answers

How to organize a project's Helm chart structure

I have a project composed of multiple services that share some things in common (e.g., DB endpoints). The project's repo structure keeps the code and configuration of each service independent of the others. I'm using Helm to deploy the project's…
Rich
  • 658
  • 1
  • 9
  • 18
2
votes
1 answer

How do I upgrade from helm 3.0.0?

I'm currently running helm 3.0.0 in ubuntu and want to upgrade to helm > 3.0.2 for gitlab. The install instructions suggest it's as simple as deleting the helm binary and downloading the new one and the release notes all suggest there are no…
mikeLundquist
  • 769
  • 1
  • 12
  • 26
2
votes
0 answers

Mongo connection problem in Kubernetes with Rails

I am deploying mongodb to Kubernetes with following values: mongodb: persistence: enabled: true existingClaim: mongodb-pvc volumePermissions: enabled: true mongodbRootPassword: hello mongodbUsername: db_user mongodbPassword:…
Tek Nath Acharya
  • 1,676
  • 2
  • 20
  • 35
2
votes
1 answer

How to pass the request-timeout from helm to kubectl

I'm trying to use helm to deploy applications to kubernetes. In some situations, e.g. working behind proxy, I have to encounter kubectl timeout issue frequently. I can specify --request-timeout when I use kubectl without helm. How can I pass…
Michael
  • 103
  • 2
  • 11
2
votes
1 answer

Use values-production.yaml instead of values.yaml for Helm Dependencies

I am creating a helm chart that uses multiple dependencies. For some of those dependencies I would like to use their values-production.yaml instead of the default values.yaml. I have tried adding a tag section to the dependencies to call the…
imapotatoe123
  • 656
  • 1
  • 10
  • 21
2
votes
3 answers

Jenkins helm value for passing JAVA_ARGS

I want to pass some JAVA_ARGS in a jenkins kubernetes instance created using the official helm chart. Example of such values are: JAVA_ARGS="-Djava.awt.headless=true…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
1 2 3
99
100