summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates
diff options
context:
space:
mode:
authorJerome Doucerain <jerome.doucerain@bell.ca>2018-03-17 14:36:12 -0400
committerJerome Doucerain <jerome.doucerain@bell.ca>2018-03-17 14:40:41 -0400
commitaa56bbc3f170f6d4b417354a111ad2c50d79d53a (patch)
treeeff037f95d9a29be0d9f7dc88da3f9d43e967649 /kubernetes/sdnc/templates
parent9d84e4397839580c401d457997c794a5c92db60e (diff)
SDNC parameterized persisted type and location
conditional subpath in case we are not using the NFS provisioner parameterized location if we are using hostpath Issue-ID: OOM-748 Change-Id: I982a75a91fa5e6349697867d188c3c83093e5e78 Signed-off-by: Jerome Doucerain <jerome.doucerain@bell.ca>
Diffstat (limited to 'kubernetes/sdnc/templates')
-rw-r--r--kubernetes/sdnc/templates/db-statefulset.yaml9
1 files changed, 8 insertions, 1 deletions
diff --git a/kubernetes/sdnc/templates/db-statefulset.yaml b/kubernetes/sdnc/templates/db-statefulset.yaml
index d0f141f868..29d592a6a7 100644
--- a/kubernetes/sdnc/templates/db-statefulset.yaml
+++ b/kubernetes/sdnc/templates/db-statefulset.yaml
@@ -82,7 +82,9 @@ spec:
volumeMounts:
- name: sdnc-data
mountPath: /var/lib/mysql
+#{{ if not .Values.disableNfsProvisioner }}
subPath: mysql
+#{{ end }}
- name: conf
mountPath: /etc/mysql/conf.d
containers:
@@ -99,7 +101,9 @@ spec:
volumeMounts:
- mountPath: /var/lib/mysql
name: sdnc-data
+#{{ if not .Values.disableNfsProvisioner }}
subPath: mysql
+#{{ end }}
- name: conf
mountPath: /etc/mysql/conf.d
ports:
@@ -178,7 +182,9 @@ spec:
volumeMounts:
- name: sdnc-data
mountPath: /var/lib/mysql
+#{{ if not .Values.disableNfsProvisioner }}
subPath: mysql
+#{{ end }}
- name: conf
mountPath: /etc/mysql/conf.d
resources:
@@ -197,7 +203,7 @@ spec:
#{{ if .Values.disableNfsProvisioner }}
- name: sdnc-data
hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/data
+ path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data/mysql
#{{ else }}
volumeClaimTemplates:
- metadata:
@@ -211,3 +217,4 @@ spec:
storage: 1Gi
#{{ end }}
#{{ end }}
+