Skip to content

Databases

krakazyabra edited this page Jul 22, 2021 · 1 revision

MariaDB

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

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

# Chart.yaml
...
dependencies:
  - name: mariadb
    version: ~0.1.1
    repository: https://krakazyabra.github.io/microservices/
    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: root-pass
    # MYSQL_USER: myuser
    # MYSQL_PASSWORD: myuser-pass
  env: {}
    # TZ: "America/Los_Angeles"
    # PUID: "1000"
    # PGID: "1000"
    # REMOTE_SQL: "http://URL1/your.sql,https://URL2/your.sql"
    # MYSQL_DATABASE: mydatabase
  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