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 apiVersion: extensions/v1beta1
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 }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
34 - name: {{ include "common.name" . }}-job-completion
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
38 - /root/job_complete.py
41 - {{ .Release.Name }}-portal-db-config
47 fieldPath: metadata.namespace
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - /start-apache-tomcat.sh
59 - name: javax.net.ssl.keyStore
60 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
61 - name: javax.net.ssl.keyStorePassword
62 value: {{ .Values.global.keypass }}
63 - name: javax.net.ssl.trustStore
64 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
65 - name: javax.net.ssl.trustStorePassword
66 value: {{ .Values.global.keypass }}
68 - containerPort: {{ .Values.service.internalPort }}
69 - containerPort: {{ .Values.service.internalPort2 }}
70 - containerPort: {{ .Values.service.internalPort3 }}
71 - containerPort: {{ .Values.service.internalPort4 }}
72 {{- if eq .Values.liveness.enabled true }}
75 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.liveness.periodSeconds }}
81 port: {{ .Values.service.internalPort }}
82 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.readiness.periodSeconds }}
85 - mountPath: /etc/localtime
88 - name: properties-onapportal
89 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties"
90 subPath: fusion.properties
91 - name: properties-onapportal
92 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/openid-connect.properties"
93 subPath: openid-connect.properties
94 - name: properties-onapportal
95 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/conf/system.properties"
96 subPath: system.properties
97 - name: properties-onapportal
98 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/portal.properties"
99 subPath: portal.properties
100 - name: properties-onapportal
101 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/music.properties"
102 subPath: music.properties
103 - name: properties-onapportal
104 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/logback.xml"
106 - name: properties-onapportal
107 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
109 - name: properties-onapportal
110 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.keystoreFile}}"
111 subPath: {{ .Values.global.keystoreFile}}
112 - name: properties-onapportal
113 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}"
114 subPath: {{ .Values.global.truststoreFile}}
116 mountPath: /var/log/onap
118 {{ include "common.resources" . | indent 12 }}
119 {{- if .Values.nodeSelector }}
121 {{ toYaml .Values.nodeSelector | indent 10 }}
123 {{- if .Values.affinity }}
125 {{ toYaml .Values.affinity | indent 10 }}
127 - name: filebeat-onap
128 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
129 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
131 - mountPath: /usr/share/filebeat/filebeat.yml
133 subPath: filebeat.yml
134 - name: portal-data-filebeat
135 mountPath: /usr/share/filebeat/data
137 mountPath: /var/log/onap
142 - name: properties-onapportal
144 name: {{ include "common.fullname" . }}-onapportal
146 - name: filebeat-conf
148 name: portal-filebeat
151 - name: portal-data-filebeat
153 - name: portal-tomcat-logs
156 - name: "{{ include "common.namespace" . }}-docker-registry-key"