blob: f1dae14017392b5f38568e8a531425eda7068ec2 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: portaldb
5spec:
6 selector:
7 matchLabels:
8 app: portaldb
9 template:
10 metadata:
11 labels:
12 app: portaldb
13 name: portaldb
14 spec:
15 containers:
16 - image: nexus3.onap.org:10001/openecomp/portaldb:1.0-STAGING-latest
17 name: "portaldb"
18 env:
19 - name: MYSQL_HOST
20 value: portaldb.onap-portal
21 - name: MYSQL_ROOT_PASSWORD
22 value: password
23 volumeMounts:
24 - mountPath: /var/lib/mysql
25 name: portal-mariadb-data
26 ports:
27 - containerPort: 3306
28 name: portaldb
29 readinessProbe:
30 tcpSocket:
31 port: 3306
32 initialDelaySeconds: 5
33 periodSeconds: 10
34 volumes:
35 - name: portal-mariadb-data
36 hostPath:
37 path: /dockerdata-nfs/onapdemo/portal/mariadb/data
Borislav Glozman5197e2e2017-07-24 10:45:28 +030038 imagePullSecrets:
39 - name: onap-docker-registry-key