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.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
33 {{- if .Values.annotations }}
35 {{- .Values.annotations | nindent 8 -}}
38 app: {{ include "common.name" . }}
39 release: {{ .Release.Name }}
42 - name: {{ include "common.name" . }}-job-completion
43 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
44 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
46 - /root/job_complete.py
49 - {{ .Release.Name }}-portal-db-config
55 fieldPath: metadata.namespace
57 - name: {{ include "common.name" . }}
58 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - /start-apache-tomcat.sh
69 -Djavax.net.ssl.keyStore={{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
70 -Djavax.net.ssl.keyStorePassword={{ .Values.global.trustpass }}
71 -Djavax.net.ssl.trustStore={{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
72 -Djavax.net.ssl.trustStorePassword={{ .Values.global.trustpass }}
73 - name: javax.net.ssl.keyStore
74 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
75 - name: javax.net.ssl.keyStorePassword
76 value: {{ .Values.global.trustpass }}
77 - name: javax.net.ssl.trustStore
78 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
79 - name: javax.net.ssl.trustStorePassword
80 value: {{ .Values.global.trustpass }}
82 - containerPort: {{ .Values.service.internalPort }}
83 - containerPort: {{ .Values.service.internalPort2 }}
84 - containerPort: {{ .Values.service.internalPort3 }}
85 - containerPort: {{ .Values.service.internalPort4 }}
86 {{- if eq .Values.liveness.enabled true }}
89 port: {{ .Values.service.internalPort }}
90 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
91 periodSeconds: {{ .Values.liveness.periodSeconds }}
95 port: {{ .Values.service.internalPort }}
96 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
97 periodSeconds: {{ .Values.readiness.periodSeconds }}
99 - mountPath: /etc/localtime
102 - name: properties-onapportal
103 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties"
104 subPath: fusion.properties
105 - name: properties-onapportal
106 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/openid-connect.properties"
107 subPath: openid-connect.properties
108 - name: properties-onapportal
109 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/conf/system.properties"
110 subPath: system.properties
111 - name: properties-onapportal
112 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/portal.properties"
113 subPath: portal.properties
114 - name: properties-onapportal
115 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/music.properties"
116 subPath: music.properties
117 - name: properties-onapportal
118 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/logback.xml"
120 - name: properties-onapportal
121 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
123 - name: authz-onapportal
124 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.keystoreFile}}"
125 subPath: {{ .Values.global.keystoreFile}}
126 - name: authz-onapportal
127 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}"
128 subPath: {{ .Values.global.truststoreFile}}
130 mountPath: /var/log/onap
132 {{ include "common.resources" . | indent 12 }}
133 {{- if .Values.nodeSelector }}
135 {{ toYaml .Values.nodeSelector | indent 10 }}
137 {{- if .Values.affinity }}
139 {{ toYaml .Values.affinity | indent 10 }}
141 - name: filebeat-onap
142 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
143 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
145 - mountPath: /usr/share/filebeat/filebeat.yml
147 subPath: filebeat.yml
148 - name: portal-data-filebeat
149 mountPath: /usr/share/filebeat/data
151 mountPath: /var/log/onap
156 - name: properties-onapportal
158 name: {{ include "common.fullname" . }}-onapportal
160 - name: authz-onapportal
162 secretName: {{ include "common.fullname" . }}-authz-onapportal
163 - name: filebeat-conf
165 name: portal-filebeat
168 - name: portal-data-filebeat
170 - name: portal-tomcat-logs
173 - name: "{{ include "common.namespace" . }}-docker-registry-key"