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
61 -Djavax.net.ssl.keyStore={{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
62 -Djavax.net.ssl.keyStorePassword={{ .Values.global.trustpass }}
63 -Djavax.net.ssl.trustStore={{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
64 -Djavax.net.ssl.trustStorePassword={{ .Values.global.trustpass }}
65 - name: javax.net.ssl.keyStore
66 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
67 - name: javax.net.ssl.keyStorePassword
68 value: {{ .Values.global.trustpass }}
69 - name: javax.net.ssl.trustStore
70 value: {{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}
71 - name: javax.net.ssl.trustStorePassword
72 value: {{ .Values.global.trustpass }}
74 - containerPort: {{ .Values.service.internalPort }}
75 - containerPort: {{ .Values.service.internalPort2 }}
76 - containerPort: {{ .Values.service.internalPort3 }}
77 - containerPort: {{ .Values.service.internalPort4 }}
78 {{- if eq .Values.liveness.enabled true }}
81 port: {{ .Values.service.internalPort }}
82 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.liveness.periodSeconds }}
87 port: {{ .Values.service.internalPort }}
88 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
89 periodSeconds: {{ .Values.readiness.periodSeconds }}
91 - mountPath: /etc/localtime
94 - name: properties-onapportal
95 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties"
96 subPath: fusion.properties
97 - name: properties-onapportal
98 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/openid-connect.properties"
99 subPath: openid-connect.properties
100 - name: properties-onapportal
101 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/conf/system.properties"
102 subPath: system.properties
103 - name: properties-onapportal
104 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/portal.properties"
105 subPath: portal.properties
106 - name: properties-onapportal
107 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/music.properties"
108 subPath: music.properties
109 - name: properties-onapportal
110 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTAL/WEB-INF/classes/logback.xml"
112 - name: properties-onapportal
113 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
115 - name: authz-onapportal
116 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.keystoreFile}}"
117 subPath: {{ .Values.global.keystoreFile}}
118 - name: authz-onapportal
119 mountPath: "{{ .Values.global.env.tomcatDir }}/{{ .Values.global.truststoreFile}}"
120 subPath: {{ .Values.global.truststoreFile}}
122 mountPath: /var/log/onap
124 {{ include "common.resources" . | indent 12 }}
125 {{- if .Values.nodeSelector }}
127 {{ toYaml .Values.nodeSelector | indent 10 }}
129 {{- if .Values.affinity }}
131 {{ toYaml .Values.affinity | indent 10 }}
133 - name: filebeat-onap
134 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
135 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
137 - mountPath: /usr/share/filebeat/filebeat.yml
139 subPath: filebeat.yml
140 - name: portal-data-filebeat
141 mountPath: /usr/share/filebeat/data
143 mountPath: /var/log/onap
148 - name: properties-onapportal
150 name: {{ include "common.fullname" . }}-onapportal
152 - name: authz-onapportal
154 secretName: {{ include "common.fullname" . }}-authz-onapportal
155 - name: filebeat-conf
157 name: portal-filebeat
160 - name: portal-data-filebeat
162 - name: portal-tomcat-logs
165 - name: "{{ include "common.namespace" . }}-docker-registry-key"