2 # Copyright (c) 2017 Amdocs, Bell Canada
3 # Modifications Copyright (c) 2018 AT&T
4 # Modifications Copyright (c) 2020 Nokia, Orange
5 # Modifications Copyright (c) 2021 Orange
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ include "common.release" . }}
29 heritage: {{ .Release.Service }}
31 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
38 app: {{ include "common.name" . }}
39 release: {{ include "common.release" . }}
40 name: {{ include "common.name" . }}
42 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
43 {{- if .Values.global.msbEnabled }}
44 {{ $values := .Values }}
45 msb.onap.org/service-info: '[
46 {{- range $api_endpoint := $values.aai_enpoints -}}
47 {{- range $api_version := $values.api_list }}
49 "serviceName": "_{{ $api_endpoint.name }}",
50 "version": "v{{ $api_version }}",
51 "url": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}",
55 "lb_policy":"ip_hash",
57 "path": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}"
60 "serviceName": "{{ $api_endpoint.name }}",
61 "version": "v{{ $api_version }}",
62 "url": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}",
66 "lb_policy":"ip_hash",
72 "serviceName": "_aai-named-query",
77 "lb_policy":"ip_hash",
82 "serviceName": "aai-named-query",
87 "lb_policy":"ip_hash",
93 hostname: aai-traversal
94 {{ if .Values.global.initContainers.enabled }}
97 {{ if .Values.global.jobs.migration.enabled }}
101 - {{ include "common.release" . }}-aai-graphadmin-migration
102 {{ else if .Values.global.jobs.createSchema.enabled }}
106 - {{ include "common.release" . }}-aai-graphadmin-create-db-schema
111 {{- if .Values.global.cassandra.localCluster }}
124 fieldPath: metadata.namespace
125 image: {{ include "repositoryGenerator.image.readiness" . }}
126 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
127 name: {{ include "common.name" . }}-readiness
130 - name: {{ include "common.name" . }}
131 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
132 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
134 - name: DISABLE_UPDATE_QUERY
135 value: {{ .Values.config.disableUpdateQuery | quote }}
136 - name: LOCAL_USER_ID
137 value: {{ .Values.global.config.userId | quote }}
138 - name: LOCAL_GROUP_ID
139 value: {{ .Values.global.config.groupId | quote }}
141 - mountPath: /etc/localtime
144 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
145 name: {{ include "common.fullname" . }}-config
146 subPath: janusgraph-realtime.properties
147 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
148 name: {{ include "common.fullname" . }}-config
149 subPath: janusgraph-cached.properties
150 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
151 name: {{ include "common.fullname" . }}-config
152 subPath: aaiconfig.properties
153 - mountPath: /opt/aai/logroot/AAI-GQ
154 name: {{ include "common.fullname" . }}-logs
155 - mountPath: /opt/aai/logroot/AAI-GQ/misc
156 name: {{ include "common.fullname" . }}-logs-misc
157 - mountPath: /opt/app/aai-traversal/resources/logback.xml
158 name: {{ include "common.fullname" . }}-config
160 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
161 name: {{ include "common.fullname" . }}-config
162 subPath: localhost-access-logback.xml
163 - mountPath: /opt/app/aai-traversal/resources/etc/auth/realm.properties
164 name: {{ include "common.fullname" . }}-config
165 subPath: realm.properties
166 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.keyfile
167 name: {{ include "common.fullname" . }}-aaf-certs
168 subPath: org.onap.aai.keyfile
169 - mountPath: /opt/app/aai-traversal/resources/aaf/bath_config.csv
170 name: {{ include "common.fullname" . }}-aaf-certs
171 subPath: bath_config.csv
172 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.props
173 name: {{ include "common.fullname" . }}-aaf-properties
174 subPath: org.onap.aai.props
175 - mountPath: /opt/app/aai-traversal/resources/aaf/org.osaaf.location.props
176 name: {{ include "common.fullname" . }}-aaf-properties
177 subPath: org.osaaf.location.props
178 - mountPath: /opt/app/aai-traversal/resources/aaf/permissions.properties
179 name: {{ include "common.fullname" . }}-aaf-properties
180 subPath: permissions.properties
181 - mountPath: /opt/app/aai-traversal/resources/cadi.properties
182 name: {{ include "common.fullname" . }}-aaf-properties
183 subPath: cadi.properties
184 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.p12
185 name: {{ include "common.fullname" . }}-aaf-certs
186 subPath: org.onap.aai.p12
187 - mountPath: /opt/app/aai-traversal/resources/aaf/truststoreONAPall.jks
188 name: aai-common-aai-auth-mount
189 subPath: truststoreONAPall.jks
190 - mountPath: /opt/app/aai-traversal/resources/application.properties
191 name: {{ include "common.fullname" . }}-config
192 subPath: application.properties
194 {{ range $job := .Values.global.config.auth.files }}
195 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
196 name: {{ include "common.fullname" $global }}-auth-truststore-sec
200 - containerPort: {{ .Values.service.internalPort }}
201 - containerPort: {{ .Values.service.internalPort2 }}
202 # disable liveness probe when breakpoints set in debugger
203 # so K8s doesn't restart unresponsive container
204 {{ if .Values.liveness.enabled }}
207 port: {{ .Values.service.internalPort }}
208 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
209 periodSeconds: {{ .Values.liveness.periodSeconds }}
213 port: {{ .Values.service.internalPort }}
214 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
215 periodSeconds: {{ .Values.readiness.periodSeconds }}
217 {{ include "common.resources" . }}
218 {{- if .Values.nodeSelector }}
220 {{ toYaml .Values.nodeSelector | indent 8 }}
222 {{- if .Values.affinity }}
224 {{ toYaml .Values.affinity | indent 8 }}
227 # side car containers
228 - name: filebeat-onap
229 image: {{ include "repositoryGenerator.image.logging" . }}
230 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
232 - mountPath: /usr/share/filebeat/filebeat.yml
233 subPath: filebeat.yml
235 - mountPath: /var/log/onap
236 name: {{ include "common.fullname" . }}-logs
237 - mountPath: /usr/share/filebeat/data
238 name: {{ include "common.fullname" . }}-filebeat
240 {{ include "common.resources" . }}
245 - name: filebeat-conf
248 - name: {{ include "common.fullname" . }}-logs
250 - name: {{ include "common.fullname" . }}-logs-misc
252 - name: {{ include "common.fullname" . }}-filebeat
254 - name: {{ include "common.fullname" . }}-config
256 name: {{ include "common.fullname" . }}-configmap
257 - name: {{ include "common.fullname" . }}-aaf-properties
259 name: {{ include "common.fullname" . }}-aaf-props
260 - name: {{ include "common.fullname" . }}-aaf-certs
262 secretName: {{ include "common.fullname" . }}-aaf-keys
263 - name: aai-common-aai-auth-mount
265 secretName: aai-common-aai-auth
266 - name: {{ include "common.fullname" . }}-auth-truststore-sec
268 secretName: aai-common-truststore
270 {{ range $job := .Values.global.config.auth.files }}
274 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
276 - name: "{{ include "common.namespace" . }}-docker-registry-key"