summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/mysql-configmap.yaml
diff options
context:
space:
mode:
authorHao Kuang <Hao.Kuang@amdocs.com>2017-12-15 20:38:03 +0000
committerHao Kuang <Hao.Kuang@amdocs.com>2017-12-20 16:43:29 +0000
commit27af4a308d56795eddb08d07cbb86d8651c4f5a2 (patch)
treea2acc5bff9251f6f5c00f859488c289c7f3211c2 /kubernetes/sdnc/templates/mysql-configmap.yaml
parenta6eb9be0e091746c824b169a46242ef0943a2b05 (diff)
Single K8S Node Of Deploying SDNC Cluster POC
It's a reference of how to deploy sdnc cluster under single node k8s environment. Currently the config of nfs for mysql db only supports one k8s node. For mutiple nodes, because of dockernfs mount, nfs provisioner has conflict with it, which fails mount operation of SDNC pod. Also, if SDNC needs to fully utilize mysql cluster under k8s, in core project, DbLibService.java should be enhanced to support that writing to master only and reading from them. Issue-ID: SDNC-163 Change-Id: I85ad327f2fe04fe8e9a135289d7c25a917234438 Signed-off-by: Hao Kuang <Hao.Kuang@amdocs.com>
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