1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 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: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
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
50 - name: {{ include "common.name" . }}
51 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - /start-apache-tomcat.sh
56 - "{{ .Values.global.env.tomcatDir }}"
58 - containerPort: {{ .Values.service.internalPort }}
59 {{- if eq .Values.liveness.enabled true }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.liveness.periodSeconds }}
68 port: {{ .Values.service.internalPort }}
69 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.readiness.periodSeconds }}
72 - mountPath: /etc/localtime
75 - name: properties-onapportalsdk
76 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
77 subPath: fusion.properties
78 - name: properties-onapportalsdk
79 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/conf/system.properties"
80 subPath: system.properties
81 - name: properties-onapportalsdk
82 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
83 subPath: portal.properties
84 - name: properties-onapportalsdk
85 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/music.properties"
86 subPath: music.properties
87 - name: properties-onapportalsdk
88 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
90 - name: portal-tomcat-logs
91 mountPath: "{{ .Values.global.env.tomcatDir }}/logs"
93 mountPath: /var/log/onap
95 {{ include "common.resources" . | indent 12 }}
96 {{- if .Values.nodeSelector }}
98 {{ toYaml .Values.nodeSelector | indent 10 }}
100 {{- if .Values.affinity }}
102 {{ toYaml .Values.affinity | indent 10 }}
104 - name: filebeat-onap
105 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
106 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
108 - mountPath: /usr/share/filebeat/filebeat.yml
110 subPath: filebeat.yml
111 - name: portal-data-filebeat
112 mountPath: /usr/share/filebeat/data
114 mountPath: /var/log/onap
119 - name: properties-onapportalsdk
121 name: {{ include "common.fullname" . }}-onapportalsdk
123 - name: filebeat-conf
125 name: portal-filebeat
128 - name: portal-data-filebeat
130 - name: portal-tomcat-logs
133 - name: "{{ include "common.namespace" . }}-docker-registry-key"