Icinga / helm-charts

Kubernetes Helm charts to deploy a ready-to-use Icinga monitoring stack.
https://icinga.com
Apache License 2.0
9 stars 13 forks source link

[Bug]: error installing with helm #32

Open tatankam opened 1 year ago

tatankam commented 1 year ago

Affected Chart

icinga-stack

Which version of the app contains the bug?

No response

Please describe your problem

Hi, I tried to install using:

helm install icinga-stack \ --namespace icinga \ --set icinga2.config.ticket_salt=Newpwd1 \ --set icingaweb2.auth.admin_password=Newpwd1 \ --set global.api.users.director.password=Newpwd1 \ --set global.api.users.icingaweb.password=Newpwd1 \ --set global.databases.director.password=Newpwd1 \ --set global.databases.icingaweb2.password=Newpwd1 \ --set global.databases.icingadb.password=Newpwd1 \ icinga/icinga-stack

but I obtain: Error: INSTALLATION FAILED: template: icinga-stack/charts/icingaweb2/templates/deployment.yaml:41:16: executing "icinga-stack/charts/icingaweb2/templates/deployment.yaml" at <include "icingaweb2.config" .>: error calling include: template: icinga-stack/charts/icingaweb2/templates/_icingaweb-config.tpl:14:61: executing "icingaweb2.config" at <.Values.global.api.users.director.password.value>: can't evaluate field value in type interface {}

Which could be the problem?

tndrs commented 11 months ago

Similar issue here:

helm install icinga-stack --set global.api.users.director.password.value=secret --set icingaweb2.auth.admin_password.value=secret --set global.api.users.icingaweb.password.value=secret --set global.databases.icingadb.password=secret --namespace icinga icinga/icinga-stack

This yields:

coalesce.go:286: warning: cannot overwrite table with non table for icinga-stack.global.databases.icingadb.password (map[secretKey:<nil> value:<nil>])
Error: INSTALLATION FAILED: template: icinga-stack/charts/icingaweb2/templates/deployment.yaml:42:16: executing "icinga-stack/charts/icingaweb2/templates/deployment.yaml" at <include "icingaweb2.resources" .>: error calling include: template: icinga-stack/charts/icingaweb2/templates/_resources.tpl:29:41: executing "icingaweb2.resources" at <$settings.password.value>: can't evaluate field value in type interface {}

My guess this happens when the values aren't properly set. Is there a chance to get a values.yaml as shown in Icinga Camp 2023 presentation for crosscheck? Cheers, Tom

bmike78 commented 9 months ago

@tndrs and @tatankam, I was able to get it working with these values:

helm install icinga-stack \
--namespace icinga \
--set icinga2.config.ticket_salt.value=CHANGEME \
--set icingaweb2.auth.admin_password.value=CHANGEME \
--set global.api.users.director.password.value=CHANGEME \
--set global.api.users.icingaweb.password.value=CHANGEME \
--set global.databases.director.username.value=icinga \
--set global.databases.director.password.value=CHANGEME \
--set global.databases.icingaweb2.username.value=icinga \
--set global.databases.icingaweb2.password.value=CHANGEME \
--set global.databases.icingadb.password.value=CHANGEME \
--set global.databases.icingadb.username.value=icinga \
icinga/icinga-stack