Skip to content

Databases

Nicholas Wilde edited this page Mar 4, 2021 · 2 revisions

MariaDB

Databases can be integrated into charts. nicholaswilde/helm-charts currently only include MariaDB databases because the image from linuxserver.io is the only one that supports multiple architectures.

Reference the shiori chart for an example.

Add the following to the Chart.yaml of the new chart.

# Chart.yaml
...
dependencies:
  - name: mariadb
    version: ~0.1.1
    repository: https://nicholaswilde.github.io/helm-charts/
    condition: mariadb.enabled
...

where ~0.1.1 is the current version of the MariaDB chart.

Add the following to the values.yaml of the new chart.

# values.yaml
...
mariadb:
  enabled: false
  secret: {}
    # MYSQL_ROOT_PASSWORD: shiori-pass
    # MYSQL_USER: shiori
    # MYSQL_PASSWORD: shiori-pass
  env: {}
    # TZ: "America/Los_Angeles"
    # PUID: "1000"
    # PGID: "1000"
    # REMOTE_SQL: "http://URL1/your.sql,https://URL2/your.sql"
    # MYSQL_DATABASE: shiori
  persistence:
    config:
      enabled: false
      emptyDir: false
      mountPath: /config
      # storageClass: "-"
      accessMode: ReadWriteOnce
      size: 1Gi
      skipuninstall: false
...

Reference the MariaDB chart values.yaml for more values.

Clone this wiki locally