8 messages
Questions and discussion around helmfile https://github.com/roboll/helmfile and https://github.com/cloudposse/helmfiles
Archive: https://archive.sweetops.com/helmfile/
Jacob Amaralmost 3 years ago
hi all, i was wondering how would you work in a huge team of 15 engineers with helmfile? because if we have multiple clusters and now one engineer need to work on prometheus values and the other one working on argocd we are locking each other
Martin Dulákalmost 3 years ago
Hello everyone! I have a question regarding
I want to use
What I have done:
1. Install Nginx Ingress
2. Manually change number of replicas of nginx controller in my cluster.
3. Run
When I do this, no changes are detected. 🤔 Is this a feature or a bug? Am I overlooking something? Many thanks!
helmfile diffI want to use
helmfile to regularly check whether my cluster is up-to-date with my Git.What I have done:
1. Install Nginx Ingress
repositories:
- name: ingress-nginx
url: <https://kubernetes.github.io/ingress-nginx>
releases:
- name: nginx-ingress
chart: ingress-nginx/ingress-nginx
version: 4.4.2
namespace: system
values:
- nginx-ingress.yaml2. Manually change number of replicas of nginx controller in my cluster.
3. Run
helmfile diffWhen I do this, no changes are detected. 🤔 Is this a feature or a bug? Am I overlooking something? Many thanks!
Dominic Cardellinoalmost 3 years ago
Hey again,
Posting this here hoping to get a quick response. I try to template my alertmanager config (kube-prometheus-stack) with helmfile. I have configured a (not that special) slack message template and i am not able to deploy the application.
The values.yaml looks something like this:
and if i run helmfile diff/apply i get the following error:
Somebody got a similar issue?
Posting this here hoping to get a quick response. I try to template my alertmanager config (kube-prometheus-stack) with helmfile. I have configured a (not that special) slack message template and i am not able to deploy the application.
The values.yaml looks something like this:
alertmanager:
config:
receivers:
- name: 'slack'
slack_configs:
- send_resolved: true
api_url: <redacted
username: AlertManager
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"and if i run helmfile diff/apply i get the following error:
in ./helmfile.yaml: in .helmfiles[3]: in releases/04-prometheus/helmfile.yaml: failed processing release kube-prometheus-stack: failed to render values files "values.yaml.gotmpl": failed to render [values.yaml.gotmpl], because of template: stringTemplate:55:29: executing "stringTemplate" at <.Alerts>: can't evaluate field Alerts in type state.releaseTemplateDataSomebody got a similar issue?
Aaron Brewbakeralmost 3 years ago
Hey everybody. I have some CRs I want to install with my helmfile managed project. What is the best way to add them? It's AzureKeyVaultSecret resources for https://akv2k8s.io/. I see the strategic merge patch thing in the docs, is that what I should do for these? Wrap it in an incubator/raw chart and add them as additional releases?
Dominic Cardellinoalmost 3 years ago
Hey Community,
I currently try to install
Installing the chart the first time runs smooth, but when I modify the values and try to upgrade the release, I get the following error message:
I already opened a Github Issue but it seems that not the chart is the problem, more helm diff causes the error.. Do you have any idea?
I currently try to install
bitnami/postgresql Helm-Chart with helmfileInstalling the chart the first time runs smooth, but when I modify the values and try to upgrade the release, I get the following error message:
ARGS:
0: helm (4 bytes)
1: --kube-context (14 bytes)
2: gke_emoneyflow_europe-west3_gke-creative-cloud-shared-staging (61 bytes)
3: diff (4 bytes)
4: upgrade (7 bytes)
5: --allow-unreleased (18 bytes)
6: mypg (4 bytes)
7: bitnami/postgresql (18 bytes)
8: --kube-context (14 bytes)
9: gke_emoneyflow_europe-west3_gke-creative-cloud-shared-staging (61 bytes)
10: --namespace (11 bytes)
11: default (7 bytes)
12: --values (8 bytes)
13: /var/folders/xm/dz525m8s23jf7lpwgnd67qwr0000gn/T/helmfile2670271078/default-mypg-values-77c9786c98 (98 bytes)
14: --detailed-exitcode (19 bytes)
15: --color (7 bytes)
16: --context (9 bytes)
17: 10 (2 bytes)
18: --reset-values (14 bytes)
ERROR:
exit status 1
EXIT STATUS
1
STDERR:
Error: Failed to render chart: exit status 1: Error: execution error at (postgresql/templates/secrets.yaml:5:24):
PASSWORDS ERROR: You must provide your current passwords when upgrading the release.
Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims.
Further information can be obtained at <https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases>
'global.postgresql.auth.postgresPassword' must not be empty, please add '--set global.postgresql.auth.postgresPassword=$POSTGRES_PASSWORD' to the command. To get the current value:
export POSTGRES_PASSWORD=$(kubectl get secret --namespace "default" mypg-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)
Use --debug flag to render out invalid YAML
Error: plugin "diff" exited with error
COMBINED OUTPUT:
Enabled three way merge via the envvar
Error: Failed to render chart: exit status 1: Error: execution error at (postgresql/templates/secrets.yaml:5:24):
PASSWORDS ERROR: You must provide your current passwords when upgrading the release.
Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims.
Further information can be obtained at <https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases>
'global.postgresql.auth.postgresPassword' must not be empty, please add '--set global.postgresql.auth.postgresPassword=$POSTGRES_PASSWORD' to the command. To get the current value:
export POSTGRES_PASSWORD=$(kubectl get secret --namespace "default" mypg-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)
Use --debug flag to render out invalid YAML
Error: plugin "diff" exited with errorI already opened a Github Issue but it seems that not the chart is the problem, more helm diff causes the error.. Do you have any idea?
Herman Smithover 2 years ago
In a
And when
Is the chart expected to be able to access
Running:
helmfile.yaml, with a block like:environments:
env_foo:
values:
- foo-values.yamlAnd when
foo-values.yaml contains bar: bazIs the chart expected to be able to access
.Values.bar ? I'm getting a nil pointer error.Running:
helmfile --environment env_foo template --include-crds -q --debug.Values only appears to contain the values defined within the chart's own values.yaml file. With --debug I even see merged environment: &{env_foo map[bar:baz] map[]} - but it doesn't seem to take effectHerman Smithover 2 years ago(edited)
Should add, the underlying helm command it appears to execute is:
And the rest of the helmfile is:
helm template myrelease /tmp/test-chart/mychart/ --include-crds --debugAnd the rest of the helmfile is:
releases:
- name: myrelease
chart: "/tmp/test-chart/mychart/" Jim Connerover 2 years ago
@Sean this one?