apiVersion: v1
kind: ConfigMap
metadata:
  name: mysql-config
data:
  mysql_database: space
  master.cnf: |
    # Apply this config only on the master.
    [mysqld]
    log-bin
  slave.cnf: |
    # Apply this config only on slaves.
    [mysqld]
    super-read-only