blob: f57f4bac87c29195bd08afda06ecc535b004bdc8 [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
31 - mountPath: /docker-entrypoint-initdb.d
32 name: mso-mariadb-docker-entrypoint-initdb
33 ports:
34 - containerPort: 3306
35 name: mariadb
36 readinessProbe:
37 tcpSocket:
38 port: 3306
39 initialDelaySeconds: 5
40 periodSeconds: 10
41 volumes:
42 - name: mso-mariadb-conf
43 hostPath:
44 path: /dockerdata-nfs/onapdemo/mso/mariadb/conf.d
45 - name: mso-mariadb-docker-entrypoint-initdb
46 hostPath:
47 path: /dockerdata-nfs/onapdemo/mso/mariadb/docker-entrypoint-initdb.d
Borislav Glozman5197e2e2017-07-24 10:45:28 +030048 imagePullSecrets:
49 - name: onap-docker-registry-key