From 27af4a308d56795eddb08d07cbb86d8651c4f5a2 Mon Sep 17 00:00:00 2001 From: Hao Kuang Date: Fri, 15 Dec 2017 20:38:03 +0000 Subject: 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 --- kubernetes/sdnc/templates/sdnc-data-storageclass.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 kubernetes/sdnc/templates/sdnc-data-storageclass.yaml (limited to 'kubernetes/sdnc/templates/sdnc-data-storageclass.yaml') diff --git a/kubernetes/sdnc/templates/sdnc-data-storageclass.yaml b/kubernetes/sdnc/templates/sdnc-data-storageclass.yaml new file mode 100644 index 0000000000..7c46cf4a68 --- /dev/null +++ b/kubernetes/sdnc/templates/sdnc-data-storageclass.yaml @@ -0,0 +1,8 @@ +#{{ if not .Values.disableSdncSdncDbhost }} +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: "{{ .Values.nsPrefix }}-sdnc-data" + namespace: "{{ .Values.nsPrefix }}-sdnc" +provisioner: sdnc/nfs +#{{ end }} -- cgit 1.2.3-korg