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 - name: {{ include "common.name" . }}-aaf-readiness
51 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 fieldPath: metadata.namespace
66 - name: {{ include "common.name" . }}-aaf-config
67 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 command: ["bash","-c"]
70 args: ["/opt/app/aaf_config/bin/agent.sh;/opt/app/aaf_config/bin/agent.sh local showpass \
71 {{.Values.aafConfig.fqi}} {{ .Values.aafConfig.fqdn }} > {{ .Values.persistence.aafCredsPath }}/mycreds.prop"]
73 - mountPath: {{ .Values.persistence.aafCredsPath }}
74 name: {{ include "common.fullname" . }}-aaf-config-vol
77 value: "{{ .Values.aafConfig.fqi }}"
78 - name: aaf_locate_url
79 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
80 - name: aaf_locator_container
81 value: "{{ .Values.global.aafLocatorContainer }}"
82 - name: aaf_locator_container_ns
83 value: "{{ .Release.Namespace }}"
84 - name: aaf_locator_fqdn
85 value: "{{ .Values.aafConfig.fqdn }}"
86 - name: aaf_locator_public_fqdn
87 value: "{{.Values.aafConfig.publicFqdn}}"
88 - name: aaf_locator_app_ns
89 value: "{{ .Values.global.aafAppNs }}"
91 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aaf-deploy-creds" "key" "login") | indent 12 }}
92 - name: DEPLOY_PASSWORD
93 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aaf-deploy-creds" "key" "password") | indent 12 }}
94 - name: cadi_longitude
95 value: "{{ .Values.aafConfig.cadiLongitude }}"
97 value: "{{ .Values.aafConfig.cadiLatitude }}"
100 - name: {{ include "common.name" . }}
101 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
102 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
103 command: ["bash","-c"]
104 {{- if .Values.global.aafEnabled }}
105 args: ["export $(grep '^c' {{ .Values.persistence.aafCredsPath }}/mycreds.prop | xargs -0);\
106 export _JAVA_OPTIONS=\"-Djavax.net.ssl.trustStorePassword=$cadi_truststore_password \
107 -Djavax.net.ssl.keyStorePassword=$cadi_keystore_password_p12\";\
108 cat /dev/null > {{ .Values.persistence.aafCredsPath }}/mycreds.prop;\
109 /start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
111 - name: _CATALINA_OPTS
113 -Djavax.net.ssl.keyStore="{{ .Values.persistence.aafCredsPath }}/{{ .Values.aafConfig.keystoreFile }}"
114 -Djavax.net.ssl.trustStore="{{ .Values.persistence.aafCredsPath }}/{{ .Values.aafConfig.truststoreFile }}"
116 args: ["/start-apache-tomcat.sh -b {{ .Values.global.env.tomcatDir }}"]
119 - containerPort: {{ .Values.service.internalPort }}
120 {{- if eq .Values.liveness.enabled true }}
123 port: {{ .Values.service.internalPort }}
124 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
125 periodSeconds: {{ .Values.liveness.periodSeconds }}
129 port: {{ .Values.service.internalPort }}
130 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
131 periodSeconds: {{ .Values.readiness.periodSeconds }}
133 {{- if .Values.global.aafEnabled }}
134 - mountPath: {{ .Values.persistence.aafCredsPath }}
135 name: {{ include "common.fullname" . }}-aaf-config-vol
137 - name: properties-onapportalsdk
138 mountPath: "{{ .Values.global.env.tomcatDir }}/conf/server.xml"
140 - mountPath: /etc/localtime
143 - name: properties-onapportalsdk
144 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties"
145 subPath: fusion.properties
146 - name: properties-onapportalsdk
147 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/conf/system.properties"
148 subPath: system.properties
149 - name: properties-onapportalsdk
150 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/portal.properties"
151 subPath: portal.properties
152 - name: properties-onapportalsdk
153 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/music.properties"
154 subPath: music.properties
155 - name: properties-onapportalsdk
156 mountPath: "{{ .Values.global.env.tomcatDir }}/webapps/ONAPPORTALSDK/WEB-INF/classes/logback.xml"
158 - name: portal-tomcat-logs
159 mountPath: "{{ .Values.global.env.tomcatDir }}/logs"
161 mountPath: /var/log/onap
163 {{ include "common.resources" . | indent 12 }}
164 {{- if .Values.nodeSelector }}
166 {{ toYaml .Values.nodeSelector | indent 10 }}
168 {{- if .Values.affinity }}
170 {{ toYaml .Values.affinity | indent 10 }}
172 - name: filebeat-onap
173 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
174 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
176 - mountPath: /usr/share/filebeat/filebeat.yml
178 subPath: filebeat.yml
179 - name: portal-data-filebeat
180 mountPath: /usr/share/filebeat/data
182 mountPath: /var/log/onap
187 - name: properties-onapportalsdk
189 name: {{ include "common.fullname" . }}-onapportalsdk
191 - name: filebeat-conf
193 name: portal-filebeat
196 - name: portal-data-filebeat
198 - name: portal-tomcat-logs
200 {{- if .Values.global.aafEnabled }}
201 - name: {{ include "common.fullname" . }}-aaf-config-vol
206 - name: "{{ include "common.namespace" . }}-docker-registry-key"