blob: 4eb46c2c022875496d52e5aa310511dc6edc9997 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableVidVidMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: vid-mariadb
21 name: vid-mariadb
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000024 replicas: {{ .Values.vidMariaDbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040025 selector:
26 matchLabels:
27 app: vid-mariadb
28 template:
29 metadata:
30 labels:
31 app: vid-mariadb
32 name: vid-mariadb
33 spec:
34 containers:
kerenjbf4b4a02017-08-23 07:39:14 +000035 - image: {{ .Values.image.mariadb }}
36 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 name: vid-mariadb
38 env:
39 - name: MYSQL_DATABASE
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040040 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 - name: MYSQL_USER
42 value: vidadmin
43 - name: MYSQL_PASSWORD
44 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
45 - name: MYSQL_ROOT_PASSWORD
46 value: LF+tp_1WqgSY
47 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - mountPath: /etc/localtime
49 name: localtime
50 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - mountPath: /var/lib/mysql
52 name: vid-mariadb-data
53 - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
Pramod46bec902018-01-17 12:36:06 +000054 name: vid-lfconfig
55 subPath: vid-pre-init.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 - mountPath: /etc/mysql/my.cnf
Pramod46bec902018-01-17 12:36:06 +000057 name: vid-lfconfig
58 subPath: my.cnf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 ports:
60 - containerPort: 3306
61 readinessProbe:
62 tcpSocket:
63 port: 3306
64 initialDelaySeconds: 5
65 periodSeconds: 10
66 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030067 - name: localtime
68 hostPath:
69 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - name: vid-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030071 persistentVolumeClaim:
72 claimName: vid-db
Pramod46bec902018-01-17 12:36:06 +000073 - name: vid-lfconfig
74 configMap:
75 name: vid-lfconfig-configmap
76 defaultMode: 0755
77 items:
78 - key: vid-my.cnf
79 path: my.cnf
80 - key: vid-pre-init.sql
81 path: vid-pre-init.sql
Borislav Glozman5197e2e2017-07-24 10:45:28 +030082 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000083 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Pramod46bec902018-01-17 12:36:06 +000084#{{ end }}