1 #{{ if not .Values.disablePortalPortalapps }}
2 apiVersion: extensions/v1beta1
6 namespace: "{{ .Values.nsPrefix }}-portal"
8 replicas: {{ .Values.portalAppsReplicas }}
29 fieldPath: metadata.namespace
30 image: {{ .Values.image.readiness }}
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: portalapps-readiness
33 - command: ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -pAa123456 -h portaldb < /portal-mysql/oom_updates.sql; fi"]
35 - mountPath: /portal-mysql/oom_updates.sql
36 name: portal-mariadb-onboarding-sql
37 subPath: oom_updates.sql
38 - mountPath: /portal_root/
40 image: {{ .Values.image.mariadbClient }}
41 imagePullPolicy: {{ .Values.pullPolicy }}
42 name: provision-portaldb-users
43 - command: ["/bin/bash", "-c", "mkdir -p /ubuntu-init/ && chmod -R 777 /ubuntu-init/"]
46 mountPath: /ubuntu-init/
47 image: {{ .Values.image.ubuntuInit }}
48 imagePullPolicy: {{ .Values.pullPolicy }}
49 name: portal-app-logs-init
51 - image: {{ .Values.image.portalapps }}
52 imagePullPolicy: {{ .Values.pullPolicy }}
56 command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"]
59 - mountPath: /etc/localtime
62 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties"
63 name: onap-portal-properties
64 subPath: fusion.properties
65 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties"
66 name: onap-portal-properties
67 subPath: openid-connect.properties
68 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/conf/system.properties"
69 name: onap-portal-properties
70 subPath: system.properties
71 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/portal.properties"
72 name: onap-portal-properties
73 subPath: portal.properties
74 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/logback.xml"
77 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/conf/system.properties"
78 name: portal-sdkapp-properties
79 subPath: system.properties
80 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
81 name: portal-sdkapp-properties
82 subPath: portal.properties
83 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
84 name: portal-sdkapp-properties
85 subPath: fusion.properties
86 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
89 - mountPath: /portal_root/
91 - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs"
93 - mountPath: /var/log/onap
102 initialDelaySeconds: 5
104 - image: {{ .Values.image.filebeat }}
105 imagePullPolicy: {{ .Values.pullPolicy }}
108 - mountPath: /usr/share/filebeat/filebeat.yml
110 subPath: filebeat.yml
111 - mountPath: /var/log/onap
113 - mountPath: /usr/share/filebeat/data
114 name: portal-data-filebeat
119 - name: filebeat-conf
121 name: portal-filebeat-configmap
124 - name: portal-data-filebeat
126 - name: onap-portal-properties
129 name: portal-onap-portal-configmap
130 - name: portal-sdkapp-properties
133 name: portal-onap-portal-sdk-configmap
134 - name: portal-logback
136 name: portal-onapportal-log-configmap
137 - name: sdkapp-logback
139 name: portal-onapportalsdk-log-configmap
140 - name: portal-mariadb-onboarding-sql
142 name: portal-mariadb-configmap
145 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/portal
148 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/portal/logs
150 - name: "{{ .Values.nsPrefix }}-docker-registry-key"