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.
16 apiVersion: extensions/v1beta1
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 }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
35 - name: {{ include "common.name" . }}-readiness
36 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 fieldPath: metadata.namespace
49 {{- if .Values.global.aafEnabled }}
50 {{ include "common.aaf-config" . | indent 6 }}
53 - name: {{ include "common.name" . }}
54 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 command: ["bash","-c"]
57 {{- if .Values.global.aafEnabled }}
58 args: ["export $(grep '^c' {{ .Values.aafConfig.credsPath }}/mycreds.prop | xargs -0);\
59 export _JAVA_OPTIONS=\"-Djavax.net.ssl.trustStorePassword=$cadi_truststore_password \
60 -Djavax.net.ssl.keyStorePassword=$cadi_keystore_password_p12\";\
61 /start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
63 - name: _CATALINA_OPTS
65 -Djavax.net.ssl.keyStore="{{ .Values.aafConfig.credsPath }}/{{ .Values.aafConfig.keystoreFile }}"
66 -Djavax.net.ssl.trustStore="{{ .Values.aafConfig.credsPath }}/{{ .Values.aafConfig.truststoreFile }}"
68 args: ["/start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
71 - containerPort: {{ .Values.service.internalPort }}
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 {{- if .Values.global.aafEnabled }}
86 {{ include "common.aaf-config-volume-mountpath" . | indent 8 }}
88 - name: properties-onapportalsdk
89 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
91 - mountPath: /etc/localtime
94 - name: properties-onapportalsdk
95 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
96 subPath: fusion.properties
97 - name: properties-onapportalsdk
98 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/conf/system.properties"
99 subPath: system.properties
100 - name: properties-onapportalsdk
101 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
102 subPath: portal.properties
103 - name: properties-onapportalsdk
104 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/music.properties"
105 subPath: music.properties
106 - name: properties-onapportalsdk
107 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
109 - name: portal-tomcat-logs
110 mountPath: "{{ .Values.global.env.tomcatDir }}/logs"
112 mountPath: /var/log/onap
114 {{ include "common.resources" . }}
115 {{- if .Values.nodeSelector }}
117 {{ toYaml .Values.nodeSelector | indent 10 }}
119 {{- if .Values.affinity }}
121 {{ toYaml .Values.affinity | indent 10 }}
123 - name: filebeat-onap
124 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
125 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
127 - mountPath: /usr/share/filebeat/filebeat.yml
129 subPath: filebeat.yml
130 - name: portal-data-filebeat
131 mountPath: /usr/share/filebeat/data
133 mountPath: /var/log/onap
138 - name: properties-onapportalsdk
140 name: {{ include "common.fullname" . }}-onapportalsdk
142 - name: filebeat-conf
144 name: portal-filebeat
147 - name: portal-data-filebeat
149 - name: portal-tomcat-logs
151 {{- if .Values.global.aafEnabled }}
152 {{ include "common.aaf-config-volumes" . | indent 8 }}
155 - name: "{{ include "common.namespace" . }}-docker-registry-key"