summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mysql/templates/configmap.yaml
blob: dd2b5b7db2c922b4e869b2f773905bc2ebca6cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "common.fullname" . }}-db-configmap
  namespace: {{ include "common.namespace" . }}
data:
  master.cnf: |
    # Apply this config only on the master.
    [mysqld]
    log-bin
    [localpathprefix]
    master
  slave.cnf: |
    # Apply this config only on slaves.
    [mysqld]
    super-read-only
    [localpathprefix]
    slave