blob: 13cf57093d24a28789faf8e91354f0b223895940 [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 Khinda82c63d32017-08-21 16:04:37 -040041 "command": ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -ppassword -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
80 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/fusion/conf/fusion.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040081 name: dbcapp-fusion-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000082 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/conf/system.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 name: dbcapp-system-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000084 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/classes/portal.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040085 name: dbcapp-portal-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000086 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/dbcapp/dbcapp.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040087 name: dbcapp-dbcapp-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000088 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/conf/system.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040089 name: sdkapp-system-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000090 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/classes/portal.properties"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040091 name: sdkapp-portal-properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000092 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040093 name: sdkapp-fusion-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040094 - mountPath: /portal_root/
95 name: portal-root
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +000096 - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040097 name: portal-logs
yurynd0707be2017-09-27 14:54:18 +030098 - mountPath: /var/log/onap
99 name: portal-logs2
100 - mountPath: /PROJECT/APPS/ECOMPPORTAL/ECOMPSDKAPP/WEB-INF/classes/logback.xml
101 name: portal-logback-be
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400102 ports:
103 - containerPort: 8005
104 - containerPort: 8009
105 - containerPort: 8080
106 readinessProbe:
107 tcpSocket:
108 port: 8080
109 initialDelaySeconds: 5
110 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300111 - image: {{ .Values.image.filebeat }}
112 imagePullPolicy: {{ .Values.pullPolicy }}
113 name: filebeat-onap
114 volumeMounts:
115 - mountPath: /usr/share/filebeat/filebeat.yml
116 name: filebeat-conf
117 - mountPath: /var/log/onap
118 name: portal-logs2
119 - mountPath: /usr/share/filebeat/data
120 name: portal-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400121 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300122 - name: localtime
123 hostPath:
124 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300125 - name: filebeat-conf
126 hostPath:
127 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
128 - name: portal-logs2
129 emptyDir: {}
130 - name: portal-data-filebeat
131 emptyDir: {}
132 - name: portal-logback-be
133 hostPath:
134 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/portal-be/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400135 - name: portal-fusion-properties
136 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000137 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400138 - name: portal-openid-connect-properties
139 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000140 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/openid-connect.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400141 - name: portal-system-properties
142 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000143 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400144 - name: portal-portal-properties
145 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000146 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/portal.properties
Mandeep Khindaf8bda5c2017-09-11 20:12:08 +0000147 - name: portal-logback
148 hostPath:
149 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400150 - name: dbcapp-fusion-properties
151 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000152 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400153 - name: dbcapp-system-properties
154 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000155 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400156 - name: dbcapp-portal-properties
157 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000158 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/portal.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400159 - name: dbcapp-dbcapp-properties
160 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000161 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/dbcapp.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400162 - name: sdkapp-system-properties
163 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000164 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/system.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400165 - name: sdkapp-portal-properties
166 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000167 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/portal.properties
Mandeep Khinda82c63d32017-08-21 16:04:37 -0400168 - name: sdkapp-fusion-properties
169 hostPath:
yurynd0707be2017-09-27 14:54:18 +0300170 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/fusion.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400171 - name: portal-mariadb-onboarding-sql
172 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000173 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/oom_updates.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400174 - name: portal-root
175 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000176 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal
Mandeep Khinda82c63d32017-08-21 16:04:37 -0400177 - name: portal-logs
178 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000179 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300180 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000181 - name: "{{ .Values.nsPrefix }}-docker-registry-key"