yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disablePortalPortalapps }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: portalapps |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: portalapps |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: portalapps |
| 15 | name: portalapps |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | spec: |
vasundhra | 6f62044 | 2017-11-22 12:26:25 +0000 | [diff] [blame] | 17 | initContainers: |
| 18 | - command: |
| 19 | - /root/ready.py |
| 20 | args: |
| 21 | - --container-name |
| 22 | - portaldb |
| 23 | env: |
| 24 | - name: NAMESPACE |
| 25 | valueFrom: |
| 26 | fieldRef: |
| 27 | apiVersion: v1 |
| 28 | fieldPath: metadata.namespace |
| 29 | image: {{ .Values.image.readiness }} |
| 30 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 31 | name: portalapps-readiness |
| 32 | - command: ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -pAa123456 -h portaldb < /portal-mysql/oom_updates.sql; fi"] |
| 33 | volumeMounts: |
| 34 | - mountPath: /portal-mysql/oom_updates.sql |
| 35 | name: portal-mariadb-onboarding-sql |
| 36 | - mountPath: /portal_root/ |
| 37 | name: portal-root |
| 38 | image: {{ .Values.image.mariadbClient }} |
| 39 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 40 | name: provision-portaldb-users |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | containers: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 42 | - image: {{ .Values.image.portalapps }} |
| 43 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | lifecycle: |
| 45 | postStart: |
| 46 | exec: |
| 47 | command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"] |
| 48 | name: portalapps |
| 49 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 50 | - mountPath: /etc/localtime |
| 51 | name: localtime |
| 52 | readOnly: true |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 53 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | name: portal-fusion-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 55 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | name: portal-openid-connect-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 57 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/conf/system.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | name: portal-system-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 59 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/portal.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | name: portal-portal-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 61 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/logback.xml" |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 62 | name: portal-logback |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 63 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/conf/system.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | name: sdkapp-system-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 65 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/portal.properties" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 66 | name: sdkapp-portal-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 67 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 68 | name: sdkapp-fusion-properties |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 69 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/logback.xml" |
| 70 | name: sdkapp-logback |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | - mountPath: /portal_root/ |
| 72 | name: portal-root |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 73 | - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 74 | name: portal-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 75 | - mountPath: /var/log/onap |
| 76 | name: portal-logs2 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 77 | ports: |
| 78 | - containerPort: 8005 |
| 79 | - containerPort: 8009 |
| 80 | - containerPort: 8080 |
| 81 | readinessProbe: |
| 82 | tcpSocket: |
| 83 | port: 8080 |
| 84 | initialDelaySeconds: 5 |
| 85 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 86 | - image: {{ .Values.image.filebeat }} |
| 87 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 88 | name: filebeat-onap |
| 89 | volumeMounts: |
| 90 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 91 | name: filebeat-conf |
| 92 | - mountPath: /var/log/onap |
| 93 | name: portal-logs2 |
| 94 | - mountPath: /usr/share/filebeat/data |
| 95 | name: portal-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 96 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 97 | - name: localtime |
| 98 | hostPath: |
| 99 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 100 | - name: filebeat-conf |
| 101 | hostPath: |
| 102 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 103 | - name: portal-logs2 |
| 104 | emptyDir: {} |
| 105 | - name: portal-data-filebeat |
| 106 | emptyDir: {} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 107 | - name: portal-fusion-properties |
| 108 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 109 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTAL/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 110 | - name: portal-openid-connect-properties |
| 111 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 112 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTAL/openid-connect.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 113 | - name: portal-system-properties |
| 114 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 115 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTAL/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 116 | - name: portal-portal-properties |
| 117 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 118 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTAL/portal.properties |
Mandeep Khinda | f8bda5c | 2017-09-11 20:12:08 +0000 | [diff] [blame] | 119 | - name: portal-logback |
| 120 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 121 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/onapportal/logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 122 | - name: sdkapp-system-properties |
| 123 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 124 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTALSDK/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 125 | - name: sdkapp-portal-properties |
| 126 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 127 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTALSDK/portal.properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 128 | - name: sdkapp-fusion-properties |
| 129 | hostPath: |
Mandeep Khinda | 52c8fd6 | 2017-10-24 22:13:03 +0000 | [diff] [blame] | 130 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPPORTALSDK/fusion.properties |
| 131 | - name: sdkapp-logback |
| 132 | hostPath: |
| 133 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/onapportalsdk/logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 134 | - name: portal-mariadb-onboarding-sql |
| 135 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 136 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/oom_updates.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 137 | - name: portal-root |
| 138 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 139 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 140 | - name: portal-logs |
| 141 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 142 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 143 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 144 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 6f62044 | 2017-11-22 12:26:25 +0000 | [diff] [blame] | 145 | #{{ end }} |