Questions tagged [helmfile]

Helmfile is a tool for managing multiple Kubernetes Helm packages. Questions should focus on creating and templating the Helmfile YAML files. Only use this tag for the Helmfile tool, not general Helm questions.

Helmfile is a tool for managing multiple packages, to be installed together in the same cluster. It allows declaring multiple Helm releases (chart installations) in a single YAML file. It also supports multiple deployment environments, and uses the same templating language as Helm to supply Helm values and other configuration.

Since Helmfile uses the system, it is possible to write conditional logic within a Helmfile. Helmfile also has multiple layers of templating, multiple ways to supply values to charts, and allows modifying chart content in various ways. Questions should focus on the helm file.yaml and *.yaml.gotmpl files specific to Helmfile.

Do not use this tag for general questions about Helm charts. Questions that deal only with a Helm Chart.yaml file or the Helm templates/*.yaml files should be tagged with but not , unless there is something specific to their interaction with the separate Helmfile tool.

62 questions
1
vote
0 answers

Filter yaml in helmfile

Is there a way to filter yaml files used in a helmfile? I have a values.yaml: component-a: key1: value key2: value component-b: key1: value key3: value In the helmfile I load the yaml and want to filter for a component template: templates: …
Matthias Baumgart
  • 905
  • 1
  • 9
  • 22
1
vote
1 answer

How to pass dynamic variable in helm file

I tried to pass value to helmfile with --set helmfile --file ./myfile.yaml sync --set tag=${TAG} myfile.yaml --- releases: - name: controll namespace: ns chart: {{ .Values.chart.path }} version: {{ .Values.version | default "" }} …
user1365697
  • 5,819
  • 15
  • 60
  • 96
1
vote
0 answers

helmfile sync Error kind PrometheusRule: admission webhook "prometheusrulemutate.monitoring.coreos.com" denied the request: Rules are not valid

When I ran the helmfile -e prd -l name=prd-alerts diff command to sync alerts to update the following expression the diff completed successfully, and showed the output that I would expect. absent_over_time(job_run_time{job="JobName",…
1
vote
0 answers

IBM-MQ helm chart kubernetes can't see resource limits

I'm trying to deploy IBM-MQ to Kubernetes (Rancher) using helmfile. I was getting the same error as here. It wasn't working with storage class "longhorn", but was working with storage class "local-path". I added security: initVolumeAsRoot: true to…
Arzybek
  • 547
  • 2
  • 6
  • 27
1
vote
1 answer

IBM-MQ kubernetes helm chart ImagePullBackOff

I want to deploy IBM-MQ to Kubernetes (Rancher) using helmfile. I've found this link and did everything as described in the guide: https://artifacthub.io/packages/helm/ibm-charts/ibm-mqadvanced-server-dev. But the pod is not starting with the error:…
Arzybek
  • 547
  • 2
  • 6
  • 27
1
vote
1 answer

How to deploy microservices in azure kubernetes using ansible and helm?

I need to deploy multiple microservices(payment,order) into different environments(dev,QA). As per my analysis I hope we achieve this by following steps Create separate clusters for different environments Create multiple variable files based on…
Debugger
  • 690
  • 1
  • 18
  • 41
1
vote
2 answers

How do I conditionally declare variables in go templates?

I am working on helmfile and stuck at the point where I want the conditional variable declaration. Roughly like this but in go standard templates. ENV = "prod" folder = "" if ENV == "prod": folder = "production" elif ENV == "qa" folder ==…
yogen48
  • 111
  • 1
  • 3
1
vote
0 answers

How to set a service port for ingresses in helmfile?

I'm new to Kubernetes and Helm and want to create a SSO with OIDC using vouch-proxy I found a tutorial which explains how to do it and was able to write some helmfiles that were accepted by kubernetes. I added the ingress configuration to the…
1
vote
2 answers

Helmfile annotations

I have one question regarding helmfile. The question is: how to set annotations to deployment using helmfile? I've tried by using set instruction but It's not working. Also didn't find any information in docs.
1
vote
0 answers

Loop over Helm subcharts or a set of manifests

I want to have a parent chart that generates multiple copies of a subchart. For example, the values.yaml for my parent chart would be : clients: - one - two - three When I deploy, I want it to create subchart-release-one, subchart-release-two,…
Ted
  • 111
  • 1
  • 6
1
vote
2 answers

How to pass environment variables from helmfile values.yaml to chart's values.yaml?

I have a helmfile release with multiple charts. There are values.yaml inside each chart. Рow to make values inside those values.yaml ​​change depending on environment? I know how to parameterize helmfile's values.yaml, but I can't find any way to…
Kaama
  • 25
  • 1
  • 6
1
vote
0 answers

helmfile: run prepare/cleanup scripts before/after release install/uninstall

I am using a helmfile to deploy a release, with postsync hook. ex: hooks: - events: ["postsync"] showlogs: true command: "./create_namespace.sh" args: ['{{`{{.Release.Namespace}}`}}', '{{`{{ .Values.kubeContext}}`}}'] but the issue…
Obeyda
  • 67
  • 2
  • 10
1
vote
1 answer

Using nested values defined in environment

I have the following helmfile releases: - name: whoami-mn namespace: whoami-mn-{{ .Environment.Name }} chart: tons/whoami-mn version: {{ .Values.chartVersions.whoami }} installed: {{ .Values.installed }} values: - env/{{…
user672009
  • 4,379
  • 8
  • 44
  • 77
1
vote
1 answer

`helmfile diff` returns "Release was not present in Helm. Diff will show entire contents as new."

******************** Release was not present in Helm. Diff will show entire contents as new. ******************** If I am interpreting this right, this means that there's no diff between a local state and the deployment in the cluster. Is…
1
vote
1 answer

Use Kubernetes secret under Helm File

Had Kubernetes secret file in cluster of type opaque which has base64 encoded values. How to use this file to refer secrets in helm file which pulls helm chart for deployment? Below is my helm file format bases: - ../environments.yaml -…
Nazeer_hanne
  • 213
  • 6
  • 20