Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame^] | 1 | apiVersion: v1 |
2 | kind: ConfigMap | ||||
3 | metadata: | ||||
4 | name: mysql | ||||
5 | namespace: "{{ .Values.nsPrefix }}-sdnc" | ||||
6 | labels: | ||||
7 | app: mysql | ||||
8 | data: | ||||
9 | master.cnf: | | ||||
10 | # Apply this config only on the master. | ||||
11 | [mysqld] | ||||
12 | log-bin | ||||
13 | [localpathprefix] | ||||
14 | master | ||||
15 | slave.cnf: | | ||||
16 | # Apply this config only on slaves. | ||||
17 | [mysqld] | ||||
18 | super-read-only | ||||
19 | [localpathprefix] | ||||
20 | slave |