1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018,2020 AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
38 - name: {{ include "common.name" . }}-readiness
39 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 fieldPath: metadata.namespace
52 {{ include "common.certInitializer.initContainer" . | indent 6 }}
54 - name: {{ include "common.name" . }}
55 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 command: ["bash","-c"]
58 {{- if .Values.global.aafEnabled }}
59 args: ["export $(grep '^c' {{ .Values.certInitializer.credsPath }}/mycreds.prop | xargs -0);\
60 export _JAVA_OPTIONS=\"-Djavax.net.ssl.trustStorePassword=$cadi_truststore_password \
61 -Djavax.net.ssl.keyStorePassword=$cadi_keystore_password_p12\";\
62 /start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
66 -Djavax.net.ssl.keyStore="{{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.keystoreFile }}"
67 -Djavax.net.ssl.trustStore="{{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.truststoreFile }}"
69 args: ["/start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
72 - containerPort: {{ .Values.service.internalPort }}
73 {{- if eq .Values.liveness.enabled true }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 port: {{ .Values.service.internalPort }}
83 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.readiness.periodSeconds }}
86 {{ include "common.certInitializer.volumeMount" . | indent 8 }}
87 - name: properties-onapportalsdk
88 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
90 - mountPath: /etc/localtime
93 - name: properties-onapportalsdk
94 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
95 subPath: fusion.properties
96 - name: properties-onapportalsdk
97 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/conf/system.properties"
98 subPath: system.properties
99 - name: properties-onapportalsdk
100 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
101 subPath: portal.properties
102 - name: properties-onapportalsdk
103 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/music.properties"
104 subPath: music.properties
105 - name: properties-onapportalsdk
106 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
108 - name: portal-tomcat-logs
109 mountPath: "{{ .Values.global.env.tomcatDir }}/logs"
111 mountPath: /var/log/onap
113 {{ include "common.resources" . }}
114 {{- if .Values.nodeSelector }}
116 {{ toYaml .Values.nodeSelector | indent 10 }}
118 {{- if .Values.affinity }}
120 {{ toYaml .Values.affinity | indent 10 }}
122 - name: filebeat-onap
123 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
124 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
126 - mountPath: /usr/share/filebeat/filebeat.yml
128 subPath: filebeat.yml
129 - name: portal-data-filebeat
130 mountPath: /usr/share/filebeat/data
132 mountPath: /var/log/onap
137 - name: properties-onapportalsdk
139 name: {{ include "common.fullname" . }}-onapportalsdk
141 - name: filebeat-conf
143 name: portal-filebeat
146 - name: portal-data-filebeat
148 - name: portal-tomcat-logs
150 {{ include "common.certInitializer.volumes" . | indent 8 }}
152 - name: "{{ include "common.namespace" . }}-docker-registry-key"