aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/sdnc-data-storageclass.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/sdnc-data-storageclass.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/sdnc-data-storageclass.yaml')
-rw-r--r--kubernetes/sdnc/templates/sdnc-data-storageclass.yaml8
1 files changed, 8 insertions, 0 deletions
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 }}