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

helmfile sync vs helmfile apply

sync sync all resources from state file (repos, releases and chart deps) apply apply all resources from state file only when there are changes sync The helmfile sync sub-command sync your cluster state as described in your helmfile ...…
mhyousefi
  • 1,064
  • 2
  • 16
  • 30
16
votes
1 answer

Best practices for managing multiple environments with Helm

It is unclear to me what the best practices are for managing an application with multiple environments, that shares templated files but has different variables per environment. For example, we deploy a develop, staging and production environment.…
hummmingbear
  • 2,294
  • 5
  • 25
  • 42
10
votes
1 answer

Deploying chart using helmfile returns exit code 1

I'm trying to deploy a chart using helmfile. It works just fine locally using the same version and the same cluster. The helmfile environments: dev: values: - kubeContext: nuc - host: urbantz-api.dev.fitfit.dk prod: values: …
user672009
  • 4,379
  • 8
  • 44
  • 77
9
votes
2 answers

helm dependencies with different namespaces

Right now, I have to install multiple helm charts in different namespaces for my product to work. I am trying to create a super helm chart in which I am planning to add the helm charts (of my tools, as mentioned above) and install them in one shot.…
Seeker
  • 163
  • 1
  • 12
7
votes
2 answers

Update nested array value in yaml with yq

Given a yaml file (helmfile) like the following releases: - chart: ../charts/foo name: foo namespace: '{{ .Values.stack }}' values: - ../config/templates/foo-values.yaml.gotmpl set: - name: image.tag value: 22 …
Banjer
  • 8,118
  • 5
  • 46
  • 61
6
votes
1 answer

Configure datasource via values

As the title indicates I'm trying to setup grafana using helmfile with a datasource via values. I can find the docs here but sadly my knowledge is too limited to make it work. The relevant part of my helmfile is here releases: ... - name: grafana …
user672009
  • 4,379
  • 8
  • 44
  • 77
4
votes
1 answer

How to use helmfile

helmfile was released recently and we would like to adopt it. https://github.com/roboll/helmfile my simple helmfile: vim charts.yaml ... releases: # Published chart example - name: prometheus_no_rbac # name of this…
user2156115
  • 1,169
  • 4
  • 17
  • 30
3
votes
2 answers

helm template - Helmfile, which way to go?

I am involved several projects CI/CD structures for deployment to Kubernetes with GitOps principles. Some of the projects started before I joined them, I could not have to much influence on those and some others I was involved at the startup but I…
posthumecaver
  • 1,584
  • 4
  • 16
  • 29
3
votes
0 answers

Helmfile + Kustomize - cannot unmarshal !!seq into state.HelmState

I am trying to use the Kustomize with Helmfile by following the instructions given in Readme, but I am getting below error when I try to run the sync command. helmfile --environment dev --file=helmfile.yaml sync in ./helmfile.yaml: failed to read…
Devesh mehta
  • 1,505
  • 8
  • 22
2
votes
1 answer

Helmfile - "needs" keyword has no effect

I have been trying to make use of the keyword needs (following the doc) to control the order of installation of the releases. Here is my helmfile: helmDefaults: createNamespace: false timeout: 600 helmBinary: /usr/local/bin/helm releases: -…
bplaye
  • 33
  • 4
2
votes
1 answer

represent helm chart values.yaml in helmfile.yaml

I am trying to represent the following in the helmfile.yaml but I am getting an error. Can anyone help me to set it up? values.yaml extraVolumes: - name: google-cloud-key secret: secretName: gcloud-auth I tried the following in…
Prakash
  • 279
  • 1
  • 6
  • 18
2
votes
1 answer

Configure dashboard via values

As the title indicates I'm trying to setup grafana using helmfile with a default dashboard via values. The relevant part of my helmfile is here releases: ... - name: grafana namespace: grafana chart: stable/grafana values: -…
user672009
  • 4,379
  • 8
  • 44
  • 77
1
vote
0 answers

Helmfile - Set a conditional global value that comes from an environment variable

Each of the releases in my helmfile override a value in their chart as follows: releases: - name: some-microservice needs: - kafka namespace: {{ requiredEnv "ENV" }} chart: some-microservice/some-microservice values: -…
1
vote
0 answers

No protocol handler for Git+SSH while running helm

I am trying to run a helmfile command on my local but I keep getting this error: $ helmfile -f helmfiles/service-api.yaml -e qa diff Adding repo transaction-api git+ssh://git@bitbucket.org/xxx/helm-charts@service-api?ref=v1.2.8&sparse=0 in…
Amarichey
  • 11
  • 2
1
vote
1 answer

How can you install a helm chart from AWS ECR using helmfile?

There is a way to install helm charts via AWS ECR using 'OCI', and using the AWS authentication method, but there are no detailed instructions on how to do it via helmfile. What is the necessary helmfile.yaml configuration to be able to pull a helm…
iquestionshard
  • 956
  • 1
  • 7
  • 17
1
2 3 4 5