blob: 93a798a04dc43a05b0c5885861b9a8a6d6071b43 [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:
Munir Ahmade94258e2017-08-17 12:04:14 -040046 path: /dockerdata-nfs/onapdemo/vid/mariadb/data
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 - name: vid-pre-init
48 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040049 path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-pre-init.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 - name: my-cnf
51 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040052 path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-my.cnf
Borislav Glozman5197e2e2017-07-24 10:45:28 +030053 imagePullSecrets:
54 - name: onap-docker-registry-key