blob: c34bce9c1bdf1b8fa2ec8b2c16dc8b157990bae4 [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:
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040018 - image: nexus3.onap.org:10001/library/mariadb:10
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 name: vid-mariadb
20 env:
21 - name: MYSQL_DATABASE
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040022 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 - 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