blob: f2e7927bef8e0de62ef84e8d77a9a91c27dad4d1 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: vid-mariadb
6 name: vid-mariadb
7spec:
8 selector:
9 matchLabels:
10 app: vid-mariadb
11 template:
12 metadata:
13 labels:
14 app: vid-mariadb
15 name: vid-mariadb
16 spec:
17 containers:
18 - image: mariadb:10
19 name: vid-mariadb
20 env:
21 - name: MYSQL_DATABASE
22 value: vid_openecomp
23 - name: MYSQL_USER
24 value: vidadmin
25 - name: MYSQL_PASSWORD
26 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
27 - name: MYSQL_ROOT_PASSWORD
28 value: LF+tp_1WqgSY
29 volumeMounts:
30 - mountPath: /var/lib/mysql
31 name: vid-mariadb-data
32 - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
33 name: vid-pre-init
34 - mountPath: /etc/mysql/my.cnf
35 name: my-cnf
36 ports:
37 - containerPort: 3306
38 readinessProbe:
39 tcpSocket:
40 port: 3306
41 initialDelaySeconds: 5
42 periodSeconds: 10
43 volumes:
44 - name: vid-mariadb-data
45 hostPath:
46 path: /dockerdata-nfs/onapdemo/vid/mariadb/data
47 - name: vid-pre-init
48 hostPath:
49 path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-pre-init.sql
50 - name: my-cnf
51 hostPath:
52 path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-my.cnf