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 }}
29 app: {{ include "common.name" . }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
35 name: {{ include "common.name" . }}
37 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
38 msb.onap.org/service-info: '[
40 "serviceName": "_aai-generic-query",
42 "url": "/aai/v11/search/generic-query",
46 "lb_policy":"ip_hash",
48 "path": "/aai/v11/search/generic-query"
51 "serviceName": "_aai-generic-query",
53 "url": "/aai/v12/search/generic-query",
57 "lb_policy":"ip_hash",
59 "path": "/aai/v12/search/generic-query"
62 "serviceName": "_aai-generic-query",
64 "url": "/aai/v13/search/generic-query",
68 "lb_policy":"ip_hash",
70 "path": "/aai/v13/search/generic-query"
73 "serviceName": "_aai-nodes-query",
75 "url": "/aai/v11/search/nodes-query",
79 "lb_policy":"ip_hash",
81 "path": "/aai/v11/search/nodes-query"
84 "serviceName": "_aai-nodes-query",
86 "url": "/aai/v12/search/nodes-query",
90 "lb_policy":"ip_hash",
92 "path": "/aai/v12/search/nodes-query"
95 "serviceName": "_aai-nodes-query",
97 "url": "/aai/v13/search/nodes-query",
101 "lb_policy":"ip_hash",
103 "path": "/aai/v13/search/nodes-query"
106 "serviceName": "_aai-query",
108 "url": "/aai/v11/query",
112 "lb_policy":"ip_hash",
114 "path": "/aai/v11/query"
117 "serviceName": "_aai-query",
119 "url": "/aai/v12/query",
123 "lb_policy":"ip_hash",
125 "path": "/aai/v12/query"
128 "serviceName": "_aai-query",
130 "url": "/aai/v13/query",
134 "lb_policy":"ip_hash",
136 "path": "/aai/v13/query"
139 "serviceName": "_aai-named-query",
140 "url": "/aai/search",
144 "lb_policy":"ip_hash",
146 "path": "/aai/search"
149 "serviceName": "aai-generic-query",
151 "url": "/aai/v11/search/generic-query",
155 "lb_policy":"ip_hash",
159 "serviceName": "aai-generic-query",
161 "url": "/aai/v12/search/generic-query",
165 "lb_policy":"ip_hash",
169 "serviceName": "aai-generic-query",
171 "url": "/aai/v13/search/generic-query",
175 "lb_policy":"ip_hash",
179 "serviceName": "aai-nodes-query",
181 "url": "/aai/v11/search/nodes-query",
185 "lb_policy":"ip_hash",
189 "serviceName": "aai-nodes-query",
191 "url": "/aai/v12/search/nodes-query",
195 "lb_policy":"ip_hash",
199 "serviceName": "aai-nodes-query",
201 "url": "/aai/v13/search/nodes-query",
205 "lb_policy":"ip_hash",
209 "serviceName": "aai-query",
211 "url": "/aai/v11/query",
215 "lb_policy":"ip_hash",
219 "serviceName": "aai-query",
221 "url": "/aai/v12/query",
225 "lb_policy":"ip_hash",
229 "serviceName": "aai-query",
231 "url": "/aai/v13/query",
235 "lb_policy":"ip_hash",
239 "serviceName": "aai-named-query",
240 "url": "/aai/search",
244 "lb_policy":"ip_hash",
249 hostname: aai-traversal
263 fieldPath: metadata.namespace
264 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
265 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
266 name: {{ include "common.name" . }}-readiness
268 - name: {{ include "common.name" . }}
269 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
270 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
272 - name: DISABLE_UPDATE_QUERY
273 value: {{ .Values.config.disableUpdateQuery | quote }}
274 - name: LOCAL_USER_ID
275 value: {{ .Values.config.userId | quote }}
276 - name: LOCAL_GROUP_ID
277 value: {{ .Values.config.groupId | quote }}
279 - mountPath: /etc/localtime
282 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
283 name: {{ include "common.fullname" . }}-db-real-conf
284 subPath: janusgraph-realtime.properties
285 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
286 name: {{ include "common.fullname" . }}-db-cached-conf
287 subPath: janusgraph-cached.properties
288 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
289 name: {{ include "common.fullname" . }}-aaiconfig-conf
290 subPath: aaiconfig.properties
291 - mountPath: /opt/aai/logroot/AAI-GQ
292 name: {{ include "common.fullname" . }}-logs
293 - mountPath: /opt/app/aai-traversal/resources/logback.xml
294 name: {{ include "common.fullname" . }}-log-conf
296 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
297 name: {{ include "common.fullname" . }}-localhost-access-log-conf
298 subPath: localhost-access-logback.xml
299 - mountPath: /opt/app/aai-traversal/resources/application.properties
300 name: {{ include "common.fullname" . }}-springapp-conf
301 subPath: application.properties
302 - mountPath: /opt/app/aai-traversal/resources/etc/auth/aai_keystore
303 name: {{ include "common.fullname" . }}-auth-sec
304 subPath: aai_keystore
306 - containerPort: {{ .Values.service.internalPort }}
307 - containerPort: {{ .Values.service.internalPort2 }}
308 # disable liveness probe when breakpoints set in debugger
309 # so K8s doesn't restart unresponsive container
310 {{ if .Values.liveness.enabled }}
313 port: {{ .Values.service.internalPort }}
314 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
315 periodSeconds: {{ .Values.liveness.periodSeconds }}
319 port: {{ .Values.service.internalPort }}
320 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
321 periodSeconds: {{ .Values.readiness.periodSeconds }}
323 {{ toYaml .Values.resources | indent 10 }}
324 {{- if .Values.nodeSelector }}
326 {{ toYaml .Values.nodeSelector | indent 8 }}
328 {{- if .Values.affinity }}
330 {{ toYaml .Values.affinity | indent 8 }}
333 # side car containers
334 - name: filebeat-onap
335 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
336 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
338 - mountPath: /usr/share/filebeat/filebeat.yml
339 subPath: filebeat.yml
341 - mountPath: /var/log/onap
342 name: {{ include "common.fullname" . }}-logs
343 - mountPath: /usr/share/filebeat/data
344 name: {{ include "common.fullname" . }}-filebeat
349 - name: filebeat-conf
352 - name: {{ include "common.fullname" . }}-logs
354 - name: {{ include "common.fullname" . }}-filebeat
356 - name: {{ include "common.fullname" . }}-log-conf
358 name: {{ include "common.fullname" . }}-log
359 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
361 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
362 - name: {{ include "common.fullname" . }}-db-real-conf
364 name: {{ include "common.fullname" . }}-db-real-configmap
365 - name: {{ include "common.fullname" . }}-db-cached-conf
367 name: {{ include "common.fullname" . }}-db-cached-configmap
368 - name: {{ include "common.fullname" . }}-aaiconfig-conf
370 name: {{ include "common.fullname" . }}-aaiconfig-configmap
371 - name: {{ include "common.fullname" . }}-springapp-conf
373 name: {{ include "common.fullname" . }}-springapp-configmap
374 - name: {{ include "common.fullname" . }}-realm-conf
376 name: {{ include "common.fullname" . }}-realm-configmap
377 - name: {{ include "common.fullname" . }}-auth-sec
379 secretName: {{ include "common.fullname" . }}-auth-secret
380 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
382 - name: "{{ include "common.namespace" . }}-docker-registry-key"