aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/mysql-configmap.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdnc/templates/mysql-configmap.yaml')
-rw-r--r--kubernetes/sdnc/templates/mysql-configmap.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/mysql-configmap.yaml b/kubernetes/sdnc/templates/mysql-configmap.yaml
new file mode 100644
index 0000000000..deaa997f02
--- /dev/null
+++ b/kubernetes/sdnc/templates/mysql-configmap.yaml
@@ -0,0 +1,20 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: mysql
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ 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