onap on kubernetes source files
[oom.git] / kubernetes / mso / db-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: mariadb
5 spec:
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