apiVersion: v1
kind: ConfigMap
metadata:
  name: mysql
  namespace: my-statefulset
  labels:
    app: mysql
data:
  primary.cnf: |
    # Apply this config only on the primary.
    [mysqld]
    log-bin
  replica.cnf: |
    # Apply this config only on replicas.
    [mysqld]
    super-read-only

