apiVersion: v1
kind: ConfigMap
metadata:
  name: mariadb-{{.Values.name}}-etc
  labels:
    app: mariadb
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
    component: database
data:
  mariadb.cnf: |
    [mysqld]
    max_connections           = 1024
    innodb_buffer_pool_size   = 1024M
    innodb_log_file_size      = 256M
    innodb_open_files         = 4000
    innodb_stats_on_metadata  = 0
    innodb_thread_concurrency = 0
    innodb_checksum_algorithm = crc32
    sql_mode                  = "TRADITIONAL"
