summaryrefslogtreecommitdiffstats
path: root/kubernetes/vid/templates/vid-mariadb-deployment.yaml
diff options
context:
space:
mode:
authorPramod <pramod.kumarsharma@amdocs.com>2018-01-17 12:36:06 +0000
committerpramodksamdocs <pramod.kumarsharma@amdocs.com>2018-02-02 11:31:47 +0000
commit46bec904421416cf78a6907d23e4ce40fcff51e5 (patch)
treefd523cea52ab88288ff2a7d82e0e29f01356a633 /kubernetes/vid/templates/vid-mariadb-deployment.yaml
parent58a0c10a49c79962adfd43d179ad8043c5aa1e81 (diff)
config seg vid deployment
Issue-ID: OOM-559 Change-Id: I215f471b6711c8491d9381257c1b91ca3d21b8ed Signed-off-by: Pramod <pramod.kumarsharma@amdocs.com>
Diffstat (limited to 'kubernetes/vid/templates/vid-mariadb-deployment.yaml')
-rw-r--r--kubernetes/vid/templates/vid-mariadb-deployment.yaml23
1 files changed, 14 insertions, 9 deletions
diff --git a/kubernetes/vid/templates/vid-mariadb-deployment.yaml b/kubernetes/vid/templates/vid-mariadb-deployment.yaml
index 55ef5da872..758ee578f0 100644
--- a/kubernetes/vid/templates/vid-mariadb-deployment.yaml
+++ b/kubernetes/vid/templates/vid-mariadb-deployment.yaml
@@ -36,9 +36,11 @@ spec:
- mountPath: /var/lib/mysql
name: vid-mariadb-data
- mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
- name: vid-pre-init
+ name: vid-lfconfig
+ subPath: vid-pre-init.sql
- mountPath: /etc/mysql/my.cnf
- name: my-cnf
+ name: vid-lfconfig
+ subPath: my.cnf
ports:
- containerPort: 3306
readinessProbe:
@@ -53,12 +55,15 @@ spec:
- name: vid-mariadb-data
persistentVolumeClaim:
claimName: vid-db
- - name: vid-pre-init
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-pre-init.sql
- - name: my-cnf
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-my.cnf
+ - name: vid-lfconfig
+ configMap:
+ name: vid-lfconfig-configmap
+ defaultMode: 0755
+ items:
+ - key: vid-my.cnf
+ path: my.cnf
+ - key: vid-pre-init.sql
+ path: vid-pre-init.sql
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }} \ No newline at end of file
+#{{ end }}