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         = 500
    innodb_buffer_pool_size = 800M
    innodb_log_file_size    = 200M
    innodb_open_files       = 1000
    innodb_stats_on_metadata= 0
    sql_mode                = "TRADITIONAL"
