Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: ConfigMap | ||||
3 | metadata: | ||||
4 | name: {{ include "common.fullname" . }}-db-configmap | ||||
5 | namespace: {{ include "common.namespace" . }} | ||||
6 | data: | ||||
7 | master.cnf: | | ||||
8 | # Apply this config only on the master. | ||||
9 | [mysqld] | ||||
10 | log-bin | ||||
11 | [localpathprefix] | ||||
12 | master | ||||
13 | slave.cnf: | | ||||
14 | # Apply this config only on slaves. | ||||
15 | [mysqld] | ||||
16 | super-read-only | ||||
17 | [localpathprefix] | ||||
18 | slave |