blob: c9cb645bae97f29de53daa35e61528cb8015226e [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: portalapps
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: portalapps
10 template:
11 metadata:
12 labels:
13 app: portalapps
14 name: portalapps
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "portaldb"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
kerenjcbac0102017-08-23 10:22:33 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 "name": "portalapps-readiness"
39 },
40 {
Mandeep Khinda90ec5982017-10-17 18:08:34 +000041 "command": ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -pAa123456 -h portaldb < /portal-mysql/oom_updates.sql; fi"],
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 "volumeMounts": [
43 {
Mandeep Khinda82c63d32017-08-21 16:04:37 -040044 "mountPath": "/portal-mysql/oom_updates.sql",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 "name": "portal-mariadb-onboarding-sql"
46 },
47 {
48 "mountPath": "/portal_root/",
49 "name": "portal-root"
50 }
51 ],
kerenjcbac0102017-08-23 10:22:33 +000052 "image": "{{ .Values.image.mariadbClient }}",
53 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 "name": "provision-portaldb-users"
55 }
56 ]'
57 spec:
58 containers:
kerenjcbac0102017-08-23 10:22:33 +000059 - image: {{ .Values.image.portalapps }}
60 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 lifecycle:
62 postStart:
63 exec:
64 command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"]
65 name: portalapps
66 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030067 - mountPath: /etc/localtime
68 name: localtime
69 readOnly: true
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000070 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 name: portal-fusion-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000072 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 name: portal-openid-connect-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000074 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/conf/system.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 name: portal-system-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000076 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/portal.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040077 name: portal-portal-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000078 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/logback.xml"
79 name: portal-logback
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000080 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/conf/system.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040081 name: sdkapp-system-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000082 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/classes/portal.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 name: sdkapp-portal-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000084 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040085 name: sdkapp-fusion-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040086 - mountPath: /portal_root/
87 name: portal-root
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000088 - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040089 name: portal-logs
yurynd0707be2017-09-27 14:54:18 +030090 - mountPath: /var/log/onap
91 name: portal-logs2
92 - mountPath: /PROJECT/APPS/ECOMPPORTAL/ECOMPSDKAPP/WEB-INF/classes/logback.xml
93 name: portal-logback-be
Mandeep Khindad6ea9872017-06-24 11:49:37 -040094 ports:
95 - containerPort: 8005
96 - containerPort: 8009
97 - containerPort: 8080
98 readinessProbe:
99 tcpSocket:
100 port: 8080
101 initialDelaySeconds: 5
102 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300103 - image: {{ .Values.image.filebeat }}
104 imagePullPolicy: {{ .Values.pullPolicy }}
105 name: filebeat-onap
106 volumeMounts:
107 - mountPath: /usr/share/filebeat/filebeat.yml
108 name: filebeat-conf
109 - mountPath: /var/log/onap
110 name: portal-logs2
111 - mountPath: /usr/share/filebeat/data
112 name: portal-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400113 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300114 - name: localtime
115 hostPath:
116 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300117 - name: filebeat-conf
118 hostPath:
119 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
120 - name: portal-logs2
121 emptyDir: {}
122 - name: portal-data-filebeat
123 emptyDir: {}
124 - name: portal-logback-be
125 hostPath:
126 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/portal-be/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400127 - name: portal-fusion-properties
128 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000129 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400130 - name: portal-openid-connect-properties
131 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000132 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/openid-connect.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400133 - name: portal-system-properties
134 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000135 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400136 - name: portal-portal-properties
137 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000138 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/portal.properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +0000139 - name: portal-logback
140 hostPath:
141 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400142 - name: dbcapp-fusion-properties
143 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000144 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400145 - name: dbcapp-system-properties
146 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000147 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400148 - name: dbcapp-portal-properties
149 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000150 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/portal.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400151 - name: dbcapp-dbcapp-properties
152 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000153 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/dbcapp.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400154 - name: sdkapp-system-properties
155 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000156 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400157 - name: sdkapp-portal-properties
158 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000159 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/portal.properties
Mandeep Khinda82c63d32017-08-21 16:04:37 -0400160 - name: sdkapp-fusion-properties
161 hostPath:
yurynd0707be2017-09-27 14:54:18 +0300162 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400163 - name: portal-mariadb-onboarding-sql
164 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000165 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/oom_updates.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400166 - name: portal-root
167 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000168 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal
Mandeep Khinda82c63d32017-08-21 16:04:37 -0400169 - name: portal-logs
170 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000171 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300172 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000173 - name: "{{ .Values.nsPrefix }}-docker-registry-key"