Skip to content

Databases

Databases from other repositories can be added to charts as dependencies. The databases are only installed if the <db name>.enabled key is set to true.

See home-assistant for reference.

Chart.yaml

Add the following entries to Chart.yaml under the dependencies section.

...
dependencies:
- name: postgresql
  version: <chart version>
  repository: https://charts.bitnami.com/bitnami
  condition: postgresql.enabled
- name: mariadb
  version: <chart version>
  repository: https://charts.bitnami.com/bitnami
  condition: mariadb.enabled
- name: influxdb
  version: <chart version>
  repository: https://charts.bitnami.com/bitnami
  condition: influxdb.enabled

values.yaml

Update the values.yaml with the following. Refer the respective database chart values.yaml for additional values.

MariaDB

...
mariadb:
  enabled: false
  architecture: standalone
  auth:
    database: <chart name>
    username: <chart name>
    password: <chart password>
    rootPassword: home-assistantrootpass
  primary:
    persistence:
      enabled: false

Postgres

...
postgresql:
  enabled: false
  postgresqlUsername: <chart name>
  postgresqlPassword: <chart password>
  postgresqlDatabase: <chart name>
  persistence:
    enabled: false

InfluxDB

...
influxdb:
  enabled: false
  architecture: standalone
  database: <chart name>
  authEnabled: false
  persistence:
    enabled: false