blob: ff39c5b155ab2243cefc18b1519fa025df19d607 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: mariadb
5spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: mariadb
10 template:
11 metadata:
12 labels:
13 app: mariadb
14 name: mariadb
15 spec:
16 hostname: mariadb
17 containers:
18 - args:
19 image: nexus3.onap.org:10001/mariadb:10.1.11
20 name: "mariadb"
21 env:
22 - name: MYSQL_ROOT_PASSWORD
23 value: password
24 - name: MARIADB_MAJOR
25 value: "10.1"
26 - name: MARIADB_VERSION
27 value: "10.1.11+maria-1~jessie"
28 volumeMounts:
29 - mountPath: /etc/mysql/conf.d
30 name: mso-mariadb-conf
Munir Ahmad0b133292017-08-15 15:36:46 -040031 - mountPath: /var/lib/mysql
32 name: mso-mariadb-mysql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 - mountPath: /docker-entrypoint-initdb.d
34 name: mso-mariadb-docker-entrypoint-initdb
35 ports:
36 - containerPort: 3306
37 name: mariadb
38 readinessProbe:
39 tcpSocket:
40 port: 3306
41 initialDelaySeconds: 5
42 periodSeconds: 10
43 volumes:
44 - name: mso-mariadb-conf
45 hostPath:
Munir Ahmad0b133292017-08-15 15:36:46 -040046 path: /dockerdata/onapdemo/mso/mariadb/conf.d
47 - name: mso-mariadb-mysql
48 hostPath:
49 path: /dockerdata/onapdemo/mso/mariadb/mysql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 - name: mso-mariadb-docker-entrypoint-initdb
51 hostPath:
Munir Ahmad76610be2017-08-17 11:56:15 -040052 path: /dockerdata-nfs/onapdemo/mso/mariadb/docker-entrypoint-initdb.d
Borislav Glozman5197e2e2017-07-24 10:45:28 +030053 imagePullSecrets:
54 - name: onap-docker-registry-key