helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

influxdb: helm chart doesn't create admin user

Open jas02 opened this issue 1 year ago • 1 comments

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.

jas02 avatar Oct 16 '23 07:10 jas02

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...

enavarro222 avatar Feb 07 '24 10:02 enavarro222