blob: 55ef5da872a42d506e8f03fda9729bfbc2118d3a [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVidVidMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: vid-mariadb
7 name: vid-mariadb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-vid"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: vid-mariadb
13 template:
14 metadata:
15 labels:
16 app: vid-mariadb
17 name: vid-mariadb
18 spec:
19 containers:
kerenjbf4b4a02017-08-23 07:39:14 +000020 - image: {{ .Values.image.mariadb }}
21 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040022 name: vid-mariadb
23 env:
24 - name: MYSQL_DATABASE
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040025 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 - name: MYSQL_USER
27 value: vidadmin
28 - name: MYSQL_PASSWORD
29 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
30 - name: MYSQL_ROOT_PASSWORD
31 value: LF+tp_1WqgSY
32 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030033 - mountPath: /etc/localtime
34 name: localtime
35 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 - mountPath: /var/lib/mysql
37 name: vid-mariadb-data
38 - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
39 name: vid-pre-init
40 - mountPath: /etc/mysql/my.cnf
41 name: my-cnf
42 ports:
43 - containerPort: 3306
44 readinessProbe:
45 tcpSocket:
46 port: 3306
47 initialDelaySeconds: 5
48 periodSeconds: 10
49 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030050 - name: localtime
51 hostPath:
52 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 - name: vid-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030054 persistentVolumeClaim:
55 claimName: vid-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 - name: vid-pre-init
57 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000058 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-pre-init.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - name: my-cnf
60 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000061 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-my.cnf
Borislav Glozman5197e2e2017-07-24 10:45:28 +030062 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030064#{{ end }}