summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/mysql-configmap.yaml
blob: 6b4cdcbf9cc12b8aff6aac274ca71f5661225f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apiVersion: v1
kind: ConfigMap
metadata:
  name: sdnc-mysql
  namespace: "{{ .Values.nsPrefix }}"
  labels:
    app: mysql
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