Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: portalapps |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 | ], |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 36 | "image": "{{ .Values.image.readiness }}", |
| 37 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | "name": "portalapps-readiness" |
| 39 | }, |
| 40 | { |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 41 | "command": ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -ppassword -h portaldb < /portal-mysql/oom_updates.sql; fi"], |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 42 | "volumeMounts": [ |
| 43 | { |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 44 | "mountPath": "/portal-mysql/oom_updates.sql", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | "name": "portal-mariadb-onboarding-sql" |
| 46 | }, |
| 47 | { |
| 48 | "mountPath": "/portal_root/", |
| 49 | "name": "portal-root" |
| 50 | } |
| 51 | ], |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 52 | "image": "{{ .Values.image.mariadbClient }}", |
| 53 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | "name": "provision-portaldb-users" |
| 55 | } |
| 56 | ]' |
| 57 | spec: |
| 58 | containers: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 59 | - image: {{ .Values.image.portalapps }} |
| 60 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | lifecycle: |
| 62 | postStart: |
| 63 | exec: |
| 64 | command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"] |
| 65 | name: portalapps |
| 66 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 67 | - mountPath: /etc/localtime |
| 68 | name: localtime |
| 69 | readOnly: true |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 70 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | name: portal-fusion-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 72 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 73 | name: portal-openid-connect-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 74 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/conf/system.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | name: portal-system-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 76 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/portal.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 77 | name: portal-portal-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 78 | - 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 81 | name: dbcapp-fusion-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 82 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/conf/system.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 83 | name: dbcapp-system-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 84 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/classes/portal.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 85 | name: dbcapp-portal-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 86 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPDBCAPP/WEB-INF/dbcapp/dbcapp.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 87 | name: dbcapp-dbcapp-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 88 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/conf/system.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 89 | name: sdkapp-system-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 90 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/classes/portal.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 91 | name: sdkapp-portal-properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 92 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 93 | name: sdkapp-fusion-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 94 | - mountPath: /portal_root/ |
| 95 | name: portal-root |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 96 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 97 | name: portal-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame^] | 98 | - 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 102 | ports: |
| 103 | - containerPort: 8005 |
| 104 | - containerPort: 8009 |
| 105 | - containerPort: 8080 |
| 106 | readinessProbe: |
| 107 | tcpSocket: |
| 108 | port: 8080 |
| 109 | initialDelaySeconds: 5 |
| 110 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame^] | 111 | - 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 121 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 122 | - name: localtime |
| 123 | hostPath: |
| 124 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame^] | 125 | - 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 135 | - name: portal-fusion-properties |
| 136 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 137 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 138 | - name: portal-openid-connect-properties |
| 139 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 140 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/openid-connect.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 141 | - name: portal-system-properties |
| 142 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 143 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 144 | - name: portal-portal-properties |
| 145 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 146 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/portal.properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 147 | - name: portal-logback |
| 148 | hostPath: |
| 149 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 150 | - name: dbcapp-fusion-properties |
| 151 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 152 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 153 | - name: dbcapp-system-properties |
| 154 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 155 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 156 | - name: dbcapp-portal-properties |
| 157 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 158 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 159 | - name: dbcapp-dbcapp-properties |
| 160 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 161 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPDBCAPP/dbcapp.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 162 | - name: sdkapp-system-properties |
| 163 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 164 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 165 | - name: sdkapp-portal-properties |
| 166 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 167 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/portal.properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 168 | - name: sdkapp-fusion-properties |
| 169 | hostPath: |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame^] | 170 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPSDKAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 171 | - name: portal-mariadb-onboarding-sql |
| 172 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 173 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/oom_updates.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 174 | - name: portal-root |
| 175 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 176 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 177 | - name: portal-logs |
| 178 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 179 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 180 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 181 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |