summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mysql/templates/configmap.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/mysql/templates/configmap.yaml')
-rw-r--r--kubernetes/common/mysql/templates/configmap.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/kubernetes/common/mysql/templates/configmap.yaml b/kubernetes/common/mysql/templates/configmap.yaml
new file mode 100644
index 0000000000..dd2b5b7db2
--- /dev/null
+++ b/kubernetes/common/mysql/templates/configmap.yaml
@@ -0,0 +1,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