blob: df38a2abb3ba051a3b38d098b5ed63c8105339bb [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: portaldb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-portal"
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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000022 value: "portaldb.{{ .Values.nsPrefix }}-portal"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 - name: MYSQL_ROOT_PASSWORD
24 value: password
25 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030026 - mountPath: /etc/localtime
27 name: localtime
28 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040029 - mountPath: /var/lib/mysql
30 name: portal-mariadb-data
yurynd0707be2017-09-27 14:54:18 +030031 - mountPath: /var/log/onap
32 name: portal-logs
33 - mountPath: /tmp/logback.xml
34 name: portal-logback
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 ports:
36 - containerPort: 3306
37 name: portaldb
38 readinessProbe:
39 tcpSocket:
40 port: 3306
41 initialDelaySeconds: 5
42 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030043 - image: {{ .Values.image.filebeat }}
44 imagePullPolicy: {{ .Values.pullPolicy }}
45 name: filebeat-onap
46 volumeMounts:
47 - mountPath: /usr/share/filebeat/filebeat.yml
48 name: filebeat-conf
49 - mountPath: /var/log/onap
50 name: portal-logs
51 - mountPath: /usr/share/filebeat/data
52 name: portal-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - name: localtime
55 hostPath:
56 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 - name: portal-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030058 persistentVolumeClaim:
59 claimName: portal-db
yurynd0707be2017-09-27 14:54:18 +030060 - name: filebeat-conf
61 hostPath:
62 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
63 - name: portal-logs
64 emptyDir: {}
65 - name: portal-data-filebeat
66 emptyDir: {}
67 - name: portal-logback
68 hostPath:
69 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/portal-db/logback.xml
Borislav Glozman5197e2e2017-07-24 10:45:28 +030070 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"