apiVersion: v1
kind: ConfigMap
metadata:
  name: mariadb-configmap
data:
  mariadb.cnf: |
    # MariaDB-specific config file.
    # Read by /etc/mysql/my.cnf
    
    [client]
    # Default is Latin1, if you need UTF-8 set this (also in server section)
    #default-character-set = utf8 
    
    [mysqld]
    #
    # * Character sets
    # 
    # Default is Latin1, if you need UTF-8 set all this (also in client section)
    #
    #character-set-server  = utf8 
    #collation-server      = utf8_general_ci 
    #character_set_server   = utf8 
    #collation_server       = utf8_general_ci 
    # Import all .cnf files from configuration directory
    wait_timeout = 31536000
    innodb_log_file_size = 128MB
    max_allowed_packet = 128M
    net_write_timeout = 31536000
    net_read_timeout =  31536000
    !includedir /etc/mysql/mariadb.conf.d/
  MYSQL_ROOT_PASSWORD: "tamvan"