blob: cf8bbd68e0d5abb648fff615a620ff1e9dec6eec [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: portaldb
kerenjcbac0102017-08-23 10:22:33 +00005 namespace: {{ .Values.NS }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: portaldb
10 template:
11 metadata:
12 labels:
13 app: portaldb
14 name: portaldb
15 spec:
16 containers:
kerenjcbac0102017-08-23 10:22:33 +000017 - image: {{ .Values.image.portaldb}}
18 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 name: "portaldb"
20 env:
21 - name: MYSQL_HOST
22 value: portaldb.onap-portal
23 - name: MYSQL_ROOT_PASSWORD
24 value: password
25 volumeMounts:
26 - mountPath: /var/lib/mysql
27 name: portal-mariadb-data
28 ports:
29 - containerPort: 3306
30 name: portaldb
31 readinessProbe:
32 tcpSocket:
33 port: 3306
34 initialDelaySeconds: 5
35 periodSeconds: 10
36 volumes:
37 - name: portal-mariadb-data
38 hostPath:
kerenjcbac0102017-08-23 10:22:33 +000039 path: /dockerdata-nfs/onap/portal/mariadb/data
Borislav Glozman5197e2e2017-07-24 10:45:28 +030040 imagePullSecrets:
41 - name: onap-docker-registry-key