1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #{{ if not .Values.disablePortalPortalapps }}
16 apiVersion: extensions/v1beta1
20 namespace: "{{ .Values.nsPrefix }}"
22 replicas: {{ .Values.portalAppsReplicas }}
43 fieldPath: metadata.namespace
44 image: {{ .Values.image.readiness }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
46 name: portalapps-readiness
47 - command: ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -pAa123456 -h portaldb < /portal-mysql/oom_updates.sql; fi"]
49 - mountPath: /portal-mysql/oom_updates.sql
50 name: portal-mariadb-onboarding-sql
51 subPath: oom_updates.sql
52 - mountPath: /portal_root/
54 image: {{ .Values.image.mariadbClient }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
56 name: provision-portaldb-users
57 - command: ["/bin/bash", "-c", "mkdir -p /ubuntu-init/ && chmod -R 777 /ubuntu-init/"]
60 mountPath: /ubuntu-init/
61 image: {{ .Values.image.ubuntuInit }}
62 imagePullPolicy: {{ .Values.pullPolicy }}
63 name: portal-app-logs-init
65 - image: {{ .Values.image.portalapps }}
66 imagePullPolicy: {{ .Values.pullPolicy }}
70 command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"]
73 - mountPath: /etc/localtime
76 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties"
77 name: onap-portal-properties
78 subPath: fusion.properties
79 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties"
80 name: onap-portal-properties
81 subPath: openid-connect.properties
82 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/conf/system.properties"
83 name: onap-portal-properties
84 subPath: system.properties
85 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/portal.properties"
86 name: onap-portal-properties
87 subPath: portal.properties
88 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTAL/WEB-INF/classes/logback.xml"
91 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/conf/system.properties"
92 name: portal-sdkapp-properties
93 subPath: system.properties
94 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
95 name: portal-sdkapp-properties
96 subPath: portal.properties
97 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
98 name: portal-sdkapp-properties
99 subPath: fusion.properties
100 - mountPath: "{{ .Values.onapPortal.webappsDir }}/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
103 - mountPath: /portal_root/
105 - mountPath: "{{ .Values.onapPortal.webappsDir }}/logs"
107 - mountPath: /var/log/onap
110 - containerPort: 8005
111 - containerPort: 8009
112 - containerPort: 8080
116 initialDelaySeconds: 5
118 - image: {{ .Values.image.filebeat }}
119 imagePullPolicy: {{ .Values.pullPolicy }}
122 - mountPath: /usr/share/filebeat/filebeat.yml
124 subPath: filebeat.yml
125 - mountPath: /var/log/onap
127 - mountPath: /usr/share/filebeat/data
128 name: portal-data-filebeat
133 - name: filebeat-conf
135 name: portal-filebeat-configmap
138 - name: portal-data-filebeat
140 - name: onap-portal-properties
143 name: portal-onap-portal-configmap
144 - name: portal-sdkapp-properties
147 name: portal-onap-portal-sdk-configmap
148 - name: portal-logback
150 name: portal-onapportal-log-configmap
151 - name: sdkapp-logback
153 name: portal-onapportalsdk-log-configmap
154 - name: portal-mariadb-onboarding-sql
156 name: portal-mariadb-configmap
159 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/portal
162 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/portal/logs
164 - name: "{{ .Values.nsPrefix }}-docker-registry-key"