influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
232 stars 330 forks source link

influxdb: helm chart doesn't create admin user #607

Open jas02 opened 1 year ago

jas02 commented 1 year ago

Hi,

I am trying to automate installation of InfluxDB using Ansible and InfluxDB Helm chart .Installation works, but for some reason Helm doesn't create initial admin user during the installation and I have to manually create initial account after the installation through web interface.

Helm chart version: 4.12.5 App version: 1.8.10

Corresponding values in Helm chart:

setDefaultUser:
  enabled: true
  user:
    existingSecret: influxdb-auth

config:
  http:
    auth-enabled: true

Influxdb-auth secret:

kind: Secret
data:
  influxdb-password: AAAA=
  influxdb-user: BBB=

What am I missing? Is this bug, or I have to setup something else?

BR

L.

enavarro222 commented 9 months ago

I encounter the same issue. The documentation of the docker image is better than the one of the chart. https://github.com/docker-library/docs/blob/master/influxdb/README.md#database-initialization

One need to set the var env INFLUXDB_HTTP_AUTH_ENABLED to "true" in order to get the admin user init.

the config.http.auth-enabled seems to be ignored...