blob: f890d71b401711f3be2faf4adc4ad7020e2aa124 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright (c) 2017 Amdocs, Bell Canada
2# Modifications Copyright (c) 2018 AT&T
Sylvain Desbureaux5b651322020-12-07 15:34:15 +01003# Modifications Copyright (c) 2020 Nokia, Orange
Sylvain Desbureaux70070412020-11-09 21:58:48 +01004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17apiVersion: apps/v1
18kind: Deployment
19metadata:
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
22 labels:
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
27spec:
28 replicas: {{ .Values.replicaCount }}
29 selector:
30 matchLabels:
31 app: {{ include "common.name" . }}
32 template:
33 metadata:
34 labels:
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
37 name: {{ include "common.name" . }}
38 annotations:
39 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
40 msb.onap.org/service-info: '[
41 {
42 "serviceName": "_aai-generic-query",
43 "version": "v11",
44 "url": "/aai/v11/search/generic-query",
45 "protocol": "REST",
46 "port": "8446",
47 "enable_ssl": true,
48 "lb_policy":"ip_hash",
49 "visualRange": "1",
50 "path": "/aai/v11/search/generic-query"
51 },
52 {
53 "serviceName": "_aai-generic-query",
54 "version": "v12",
55 "url": "/aai/v12/search/generic-query",
56 "protocol": "REST",
57 "port": "8446",
58 "enable_ssl": true,
59 "lb_policy":"ip_hash",
60 "visualRange": "1",
61 "path": "/aai/v12/search/generic-query"
62 },
63 {
64 "serviceName": "_aai-generic-query",
65 "version": "v13",
66 "url": "/aai/v13/search/generic-query",
67 "protocol": "REST",
68 "port": "8446",
69 "enable_ssl": true,
70 "lb_policy":"ip_hash",
71 "visualRange": "1",
72 "path": "/aai/v13/search/generic-query"
73 },
74 {
75 "serviceName": "_aai-generic-query",
76 "version": "v14",
77 "url": "/aai/v14/search/generic-query",
78 "protocol": "REST",
79 "port": "8446",
80 "enable_ssl": true,
81 "lb_policy":"ip_hash",
82 "visualRange": "1",
83 "path": "/aai/v14/search/generic-query"
84 },
85 {
86 "serviceName": "_aai-generic-query",
87 "version": "v15",
88 "url": "/aai/v15/search/generic-query",
89 "protocol": "REST",
90 "port": "8446",
91 "enable_ssl": true,
92 "lb_policy":"ip_hash",
93 "visualRange": "1",
94 "path": "/aai/v15/search/generic-query"
95 },
96 {
97 "serviceName": "_aai-generic-query",
98 "version": "v16",
99 "url": "/aai/v16/search/generic-query",
100 "protocol": "REST",
101 "port": "8446",
102 "enable_ssl": true,
103 "lb_policy":"ip_hash",
104 "visualRange": "1",
105 "path": "/aai/v16/search/generic-query"
106 },
107 {
108 "serviceName": "_aai-generic-query",
109 "version": "v17",
110 "url": "/aai/v17/search/generic-query",
111 "protocol": "REST",
112 "port": "8446",
113 "enable_ssl": true,
114 "lb_policy":"ip_hash",
115 "visualRange": "1",
116 "path": "/aai/v17/search/generic-query"
117 },
118 {
119 "serviceName": "_aai-generic-query",
120 "version": "v18",
121 "url": "/aai/v18/search/generic-query",
122 "protocol": "REST",
123 "port": "8446",
124 "enable_ssl": true,
125 "lb_policy":"ip_hash",
126 "visualRange": "1",
127 "path": "/aai/v18/search/generic-query"
128 },
129 {
130 "serviceName": "_aai-generic-query",
131 "version": "v19",
132 "url": "/aai/v19/search/generic-query",
133 "protocol": "REST",
134 "port": "8446",
135 "enable_ssl": true,
136 "lb_policy":"ip_hash",
137 "visualRange": "1",
138 "path": "/aai/v19/search/generic-query"
139 },
140 {
141 "serviceName": "_aai-nodes-query",
142 "version": "v11",
143 "url": "/aai/v11/search/nodes-query",
144 "protocol": "REST",
145 "port": "8446",
146 "enable_ssl": true,
147 "lb_policy":"ip_hash",
148 "visualRange": "1",
149 "path": "/aai/v11/search/nodes-query"
150 },
151 {
152 "serviceName": "_aai-nodes-query",
153 "version": "v12",
154 "url": "/aai/v12/search/nodes-query",
155 "protocol": "REST",
156 "port": "8446",
157 "enable_ssl": true,
158 "lb_policy":"ip_hash",
159 "visualRange": "1",
160 "path": "/aai/v12/search/nodes-query"
161 },
162 {
163 "serviceName": "_aai-nodes-query",
164 "version": "v13",
165 "url": "/aai/v13/search/nodes-query",
166 "protocol": "REST",
167 "port": "8446",
168 "enable_ssl": true,
169 "lb_policy":"ip_hash",
170 "visualRange": "1",
171 "path": "/aai/v13/search/nodes-query"
172 },
173 {
174 "serviceName": "_aai-nodes-query",
175 "version": "v14",
176 "url": "/aai/v14/search/nodes-query",
177 "protocol": "REST",
178 "port": "8446",
179 "enable_ssl": true,
180 "lb_policy":"ip_hash",
181 "visualRange": "1",
182 "path": "/aai/v14/search/nodes-query"
183 },
184 {
185 "serviceName": "_aai-nodes-query",
186 "version": "v15",
187 "url": "/aai/v15/search/nodes-query",
188 "protocol": "REST",
189 "port": "8446",
190 "enable_ssl": true,
191 "lb_policy":"ip_hash",
192 "visualRange": "1",
193 "path": "/aai/v15/search/nodes-query"
194 },
195 {
196 "serviceName": "_aai-nodes-query",
197 "version": "v16",
198 "url": "/aai/v16/search/nodes-query",
199 "protocol": "REST",
200 "port": "8446",
201 "enable_ssl": true,
202 "lb_policy":"ip_hash",
203 "visualRange": "1",
204 "path": "/aai/v16/search/nodes-query"
205 },
206 {
207 "serviceName": "_aai-nodes-query",
208 "version": "v17",
209 "url": "/aai/v17/search/nodes-query",
210 "protocol": "REST",
211 "port": "8446",
212 "enable_ssl": true,
213 "lb_policy":"ip_hash",
214 "visualRange": "1",
215 "path": "/aai/v17/search/nodes-query"
216 },
217 {
218 "serviceName": "_aai-nodes-query",
219 "version": "v18",
220 "url": "/aai/v18/search/nodes-query",
221 "protocol": "REST",
222 "port": "8446",
223 "enable_ssl": true,
224 "lb_policy":"ip_hash",
225 "visualRange": "1",
226 "path": "/aai/v18/search/nodes-query"
227 },
228 {
229 "serviceName": "_aai-nodes-query",
230 "version": "v19",
231 "url": "/aai/v19/search/nodes-query",
232 "protocol": "REST",
233 "port": "8446",
234 "enable_ssl": true,
235 "lb_policy":"ip_hash",
236 "visualRange": "1",
237 "path": "/aai/v19/search/nodes-query"
238 },
239 {
240 "serviceName": "_aai-query",
241 "version": "v11",
242 "url": "/aai/v11/query",
243 "protocol": "REST",
244 "port": "8446",
245 "enable_ssl": true,
246 "lb_policy":"ip_hash",
247 "visualRange": "1",
248 "path": "/aai/v11/query"
249 },
250 {
251 "serviceName": "_aai-query",
252 "version": "v12",
253 "url": "/aai/v12/query",
254 "protocol": "REST",
255 "port": "8446",
256 "enable_ssl": true,
257 "lb_policy":"ip_hash",
258 "visualRange": "1",
259 "path": "/aai/v12/query"
260 },
261 {
262 "serviceName": "_aai-query",
263 "version": "v13",
264 "url": "/aai/v13/query",
265 "protocol": "REST",
266 "port": "8446",
267 "enable_ssl": true,
268 "lb_policy":"ip_hash",
269 "visualRange": "1",
270 "path": "/aai/v13/query"
271 },
272 {
273 "serviceName": "_aai-query",
274 "version": "v14",
275 "url": "/aai/v14/query",
276 "protocol": "REST",
277 "port": "8446",
278 "enable_ssl": true,
279 "lb_policy":"ip_hash",
280 "visualRange": "1",
281 "path": "/aai/v14/query"
282 },
283 {
284 "serviceName": "_aai-query",
285 "version": "v15",
286 "url": "/aai/v15/query",
287 "protocol": "REST",
288 "port": "8446",
289 "enable_ssl": true,
290 "lb_policy":"ip_hash",
291 "visualRange": "1",
292 "path": "/aai/v15/query"
293 },
294 {
295 "serviceName": "_aai-query",
296 "version": "v16",
297 "url": "/aai/v16/query",
298 "protocol": "REST",
299 "port": "8446",
300 "enable_ssl": true,
301 "lb_policy":"ip_hash",
302 "visualRange": "1",
303 "path": "/aai/v16/query"
304 },
305 {
306 "serviceName": "_aai-query",
307 "version": "v17",
308 "url": "/aai/v17/query",
309 "protocol": "REST",
310 "port": "8446",
311 "enable_ssl": true,
312 "lb_policy":"ip_hash",
313 "visualRange": "1",
314 "path": "/aai/v17/query"
315 },
316 {
317 "serviceName": "_aai-query",
318 "version": "v18",
319 "url": "/aai/v18/query",
320 "protocol": "REST",
321 "port": "8446",
322 "enable_ssl": true,
323 "lb_policy":"ip_hash",
324 "visualRange": "1",
325 "path": "/aai/v18/query"
326 },
327 {
328 "serviceName": "_aai-query",
329 "version": "v19",
330 "url": "/aai/v19/query",
331 "protocol": "REST",
332 "port": "8446",
333 "enable_ssl": true,
334 "lb_policy":"ip_hash",
335 "visualRange": "1",
336 "path": "/aai/v19/query"
337 },
338 {
339 "serviceName": "_aai-named-query",
340 "url": "/aai/search",
341 "protocol": "REST",
342 "port": "8446",
343 "enable_ssl": true,
344 "lb_policy":"ip_hash",
345 "visualRange": "1",
346 "path": "/aai/search"
347 },
348 {
349 "serviceName": "aai-generic-query",
350 "version": "v11",
351 "url": "/aai/v11/search/generic-query",
352 "protocol": "REST",
353 "port": "8446",
354 "enable_ssl": true,
355 "lb_policy":"ip_hash",
356 "visualRange": "1"
357 },
358 {
359 "serviceName": "aai-generic-query",
360 "version": "v12",
361 "url": "/aai/v12/search/generic-query",
362 "protocol": "REST",
363 "port": "8446",
364 "enable_ssl": true,
365 "lb_policy":"ip_hash",
366 "visualRange": "1"
367 },
368 {
369 "serviceName": "aai-generic-query",
370 "version": "v13",
371 "url": "/aai/v13/search/generic-query",
372 "protocol": "REST",
373 "port": "8446",
374 "enable_ssl": true,
375 "lb_policy":"ip_hash",
376 "visualRange": "1"
377 },
378 {
379 "serviceName": "aai-generic-query",
380 "version": "v14",
381 "url": "/aai/v14/search/generic-query",
382 "protocol": "REST",
383 "port": "8446",
384 "enable_ssl": true,
385 "lb_policy":"ip_hash",
386 "visualRange": "1"
387 },
388 {
389 "serviceName": "aai-generic-query",
390 "version": "v15",
391 "url": "/aai/v15/search/generic-query",
392 "protocol": "REST",
393 "port": "8446",
394 "enable_ssl": true,
395 "lb_policy":"ip_hash",
396 "visualRange": "1"
397 },
398 {
399 "serviceName": "aai-generic-query",
400 "version": "v16",
401 "url": "/aai/v16/search/generic-query",
402 "protocol": "REST",
403 "port": "8446",
404 "enable_ssl": true,
405 "lb_policy":"ip_hash",
406 "visualRange": "1"
407 },
408 {
409 "serviceName": "aai-generic-query",
410 "version": "v17",
411 "url": "/aai/v17/search/generic-query",
412 "protocol": "REST",
413 "port": "8446",
414 "enable_ssl": true,
415 "lb_policy":"ip_hash",
416 "visualRange": "1"
417 },
418 {
419 "serviceName": "aai-generic-query",
420 "version": "v18",
421 "url": "/aai/v18/search/generic-query",
422 "protocol": "REST",
423 "port": "8446",
424 "enable_ssl": true,
425 "lb_policy":"ip_hash",
426 "visualRange": "1"
427 },
428 {
429 "serviceName": "aai-generic-query",
430 "version": "v19",
431 "url": "/aai/v19/search/generic-query",
432 "protocol": "REST",
433 "port": "8446",
434 "enable_ssl": true,
435 "lb_policy":"ip_hash",
436 "visualRange": "1"
437 },
438 {
439 "serviceName": "aai-nodes-query",
440 "version": "v11",
441 "url": "/aai/v11/search/nodes-query",
442 "protocol": "REST",
443 "port": "8446",
444 "enable_ssl": true,
445 "lb_policy":"ip_hash",
446 "visualRange": "1"
447 },
448 {
449 "serviceName": "aai-nodes-query",
450 "version": "v12",
451 "url": "/aai/v12/search/nodes-query",
452 "protocol": "REST",
453 "port": "8446",
454 "enable_ssl": true,
455 "lb_policy":"ip_hash",
456 "visualRange": "1"
457 },
458 {
459 "serviceName": "aai-nodes-query",
460 "version": "v13",
461 "url": "/aai/v13/search/nodes-query",
462 "protocol": "REST",
463 "port": "8446",
464 "enable_ssl": true,
465 "lb_policy":"ip_hash",
466 "visualRange": "1"
467 },
468 {
469 "serviceName": "aai-nodes-query",
470 "version": "v14",
471 "url": "/aai/v14/search/nodes-query",
472 "protocol": "REST",
473 "port": "8446",
474 "enable_ssl": true,
475 "lb_policy":"ip_hash",
476 "visualRange": "1"
477 },
478 {
479 "serviceName": "aai-nodes-query",
480 "version": "v15",
481 "url": "/aai/v15/search/nodes-query",
482 "protocol": "REST",
483 "port": "8446",
484 "enable_ssl": true,
485 "lb_policy":"ip_hash",
486 "visualRange": "1"
487 },
488 {
489 "serviceName": "aai-nodes-query",
490 "version": "v16",
491 "url": "/aai/v16/search/nodes-query",
492 "protocol": "REST",
493 "port": "8446",
494 "enable_ssl": true,
495 "lb_policy":"ip_hash",
496 "visualRange": "1"
497 },
498 {
499 "serviceName": "aai-nodes-query",
500 "version": "v17",
501 "url": "/aai/v17/search/nodes-query",
502 "protocol": "REST",
503 "port": "8446",
504 "enable_ssl": true,
505 "lb_policy":"ip_hash",
506 "visualRange": "1"
507 },
508 {
509 "serviceName": "aai-nodes-query",
510 "version": "v18",
511 "url": "/aai/v18/search/nodes-query",
512 "protocol": "REST",
513 "port": "8446",
514 "enable_ssl": true,
515 "lb_policy":"ip_hash",
516 "visualRange": "1"
517 },
518 {
519 "serviceName": "aai-nodes-query",
520 "version": "v19",
521 "url": "/aai/v19/search/nodes-query",
522 "protocol": "REST",
523 "port": "8446",
524 "enable_ssl": true,
525 "lb_policy":"ip_hash",
526 "visualRange": "1"
527 },
528 {
529 "serviceName": "aai-query",
530 "version": "v11",
531 "url": "/aai/v11/query",
532 "protocol": "REST",
533 "port": "8446",
534 "enable_ssl": true,
535 "lb_policy":"ip_hash",
536 "visualRange": "1"
537 },
538 {
539 "serviceName": "aai-query",
540 "version": "v12",
541 "url": "/aai/v12/query",
542 "protocol": "REST",
543 "port": "8446",
544 "enable_ssl": true,
545 "lb_policy":"ip_hash",
546 "visualRange": "1"
547 },
548 {
549 "serviceName": "aai-query",
550 "version": "v13",
551 "url": "/aai/v13/query",
552 "protocol": "REST",
553 "port": "8446",
554 "enable_ssl": true,
555 "lb_policy":"ip_hash",
556 "visualRange": "1"
557 },
558 {
559 "serviceName": "aai-query",
560 "version": "v14",
561 "url": "/aai/v14/query",
562 "protocol": "REST",
563 "port": "8446",
564 "enable_ssl": true,
565 "lb_policy":"ip_hash",
566 "visualRange": "1"
567 },
568 {
569 "serviceName": "aai-query",
570 "version": "v15",
571 "url": "/aai/v15/query",
572 "protocol": "REST",
573 "port": "8446",
574 "enable_ssl": true,
575 "lb_policy":"ip_hash",
576 "visualRange": "1"
577 },
578 {
579 "serviceName": "aai-query",
580 "version": "v16",
581 "url": "/aai/v16/query",
582 "protocol": "REST",
583 "port": "8446",
584 "enable_ssl": true,
585 "lb_policy":"ip_hash",
586 "visualRange": "1"
587 },
588 {
589 "serviceName": "aai-query",
590 "version": "v17",
591 "url": "/aai/v17/query",
592 "protocol": "REST",
593 "port": "8446",
594 "enable_ssl": true,
595 "lb_policy":"ip_hash",
596 "visualRange": "1"
597 },
598 {
599 "serviceName": "aai-query",
600 "version": "v18",
601 "url": "/aai/v18/query",
602 "protocol": "REST",
603 "port": "8446",
604 "enable_ssl": true,
605 "lb_policy":"ip_hash",
606 "visualRange": "1"
607 },
608 {
609 "serviceName": "aai-query",
610 "version": "v19",
611 "url": "/aai/v19/query",
612 "protocol": "REST",
613 "port": "8446",
614 "enable_ssl": true,
615 "lb_policy":"ip_hash",
616 "visualRange": "1"
617 },
618 {
619 "serviceName": "aai-named-query",
620 "url": "/aai/search",
621 "protocol": "REST",
622 "port": "8446",
623 "enable_ssl": true,
624 "lb_policy":"ip_hash",
625 "visualRange": "1"
626 }
627 ]'
628 spec:
629 hostname: aai-traversal
630 {{ if .Values.global.initContainers.enabled }}
631 initContainers:
632 - command:
633 {{ if .Values.global.jobs.migration.enabled }}
634 - /app/ready.py
635 args:
636 - --job-name
637 - {{ include "common.release" . }}-aai-graphadmin-migration
638 {{ else if .Values.global.jobs.createSchema.enabled }}
639 - /app/ready.py
640 args:
641 - --job-name
642 - {{ include "common.release" . }}-aai-graphadmin-create-db-schema
643 {{ else }}
644 - /app/ready.py
645 args:
646 - --container-name
647 {{- if .Values.global.cassandra.localCluster }}
648 - aai-cassandra
649 {{- else }}
650 - cassandra
651 {{- end }}
652 - --container-name
653 - aai-schema-service
654 {{ end }}
655 env:
656 - name: NAMESPACE
657 valueFrom:
658 fieldRef:
659 apiVersion: v1
660 fieldPath: metadata.namespace
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100661 image: {{ include "repositoryGenerator.image.readiness" . }}
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100662 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
663 name: {{ include "common.name" . }}-readiness
664 {{ end }}
665 containers:
666 - name: {{ include "common.name" . }}
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100667 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100668 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
669 env:
670 - name: DISABLE_UPDATE_QUERY
671 value: {{ .Values.config.disableUpdateQuery | quote }}
672 - name: LOCAL_USER_ID
673 value: {{ .Values.global.config.userId | quote }}
674 - name: LOCAL_GROUP_ID
675 value: {{ .Values.global.config.groupId | quote }}
676 volumeMounts:
677 - mountPath: /etc/localtime
678 name: localtime
679 readOnly: true
680 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
681 name: {{ include "common.fullname" . }}-config
682 subPath: janusgraph-realtime.properties
683 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
684 name: {{ include "common.fullname" . }}-config
685 subPath: janusgraph-cached.properties
686 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
687 name: {{ include "common.fullname" . }}-config
688 subPath: aaiconfig.properties
689 - mountPath: /opt/aai/logroot/AAI-GQ
690 name: {{ include "common.fullname" . }}-logs
691 - mountPath: /opt/aai/logroot/AAI-GQ/misc
692 name: {{ include "common.fullname" . }}-logs-misc
693 - mountPath: /opt/app/aai-traversal/resources/logback.xml
694 name: {{ include "common.fullname" . }}-config
695 subPath: logback.xml
696 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
697 name: {{ include "common.fullname" . }}-config
698 subPath: localhost-access-logback.xml
699 - mountPath: /opt/app/aai-traversal/resources/etc/auth/realm.properties
700 name: {{ include "common.fullname" . }}-config
701 subPath: realm.properties
702 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.keyfile
703 name: {{ include "common.fullname" . }}-aaf-certs
704 subPath: org.onap.aai.keyfile
705 - mountPath: /opt/app/aai-traversal/resources/aaf/bath_config.csv
706 name: {{ include "common.fullname" . }}-aaf-certs
707 subPath: bath_config.csv
708 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.props
709 name: {{ include "common.fullname" . }}-aaf-properties
710 subPath: org.onap.aai.props
711 - mountPath: /opt/app/aai-traversal/resources/aaf/org.osaaf.location.props
712 name: {{ include "common.fullname" . }}-aaf-properties
713 subPath: org.osaaf.location.props
714 - mountPath: /opt/app/aai-traversal/resources/aaf/permissions.properties
715 name: {{ include "common.fullname" . }}-aaf-properties
716 subPath: permissions.properties
717 - mountPath: /opt/app/aai-traversal/resources/cadi.properties
718 name: {{ include "common.fullname" . }}-aaf-properties
719 subPath: cadi.properties
720 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.p12
721 name: {{ include "common.fullname" . }}-aaf-certs
722 subPath: org.onap.aai.p12
723 - mountPath: /opt/app/aai-traversal/resources/aaf/truststoreONAPall.jks
724 name: aai-common-aai-auth-mount
725 subPath: truststoreONAPall.jks
726 - mountPath: /opt/app/aai-traversal/resources/application.properties
727 name: {{ include "common.fullname" . }}-config
728 subPath: application.properties
729 {{ $global := . }}
730 {{ range $job := .Values.global.config.auth.files }}
731 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
732 name: {{ include "common.fullname" $global }}-auth-truststore-sec
733 subPath: {{ . }}
734 {{ end }}
735 ports:
736 - containerPort: {{ .Values.service.internalPort }}
737 - containerPort: {{ .Values.service.internalPort2 }}
738 # disable liveness probe when breakpoints set in debugger
739 # so K8s doesn't restart unresponsive container
740 {{ if .Values.liveness.enabled }}
741 livenessProbe:
742 tcpSocket:
743 port: {{ .Values.service.internalPort }}
744 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
745 periodSeconds: {{ .Values.liveness.periodSeconds }}
746 {{ end }}
747 readinessProbe:
748 tcpSocket:
749 port: {{ .Values.service.internalPort }}
750 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
751 periodSeconds: {{ .Values.readiness.periodSeconds }}
752 resources:
753{{ include "common.resources" . }}
754 {{- if .Values.nodeSelector }}
755 nodeSelector:
756{{ toYaml .Values.nodeSelector | indent 8 }}
757 {{- end -}}
758 {{- if .Values.affinity }}
759 affinity:
760{{ toYaml .Values.affinity | indent 8 }}
761 {{- end }}
762
763 # side car containers
764 - name: filebeat-onap
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100765 image: {{ include "repositoryGenerator.image.logging" . }}
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100766 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
767 volumeMounts:
768 - mountPath: /usr/share/filebeat/filebeat.yml
769 subPath: filebeat.yml
770 name: filebeat-conf
771 - mountPath: /var/log/onap
772 name: {{ include "common.fullname" . }}-logs
773 - mountPath: /usr/share/filebeat/data
774 name: {{ include "common.fullname" . }}-filebeat
775 resources:
776{{ include "common.resources" . }}
777 volumes:
778 - name: localtime
779 hostPath:
780 path: /etc/localtime
781 - name: filebeat-conf
782 configMap:
783 name: aai-filebeat
784 - name: {{ include "common.fullname" . }}-logs
785 emptyDir: {}
786 - name: {{ include "common.fullname" . }}-logs-misc
787 emptyDir: {}
788 - name: {{ include "common.fullname" . }}-filebeat
789 emptyDir: {}
790 - name: {{ include "common.fullname" . }}-config
791 configMap:
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100792 name: {{ include "common.fullname" . }}-configmap
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100793 - name: {{ include "common.fullname" . }}-aaf-properties
794 configMap:
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100795 name: {{ include "common.fullname" . }}-aaf-props
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100796 - name: {{ include "common.fullname" . }}-aaf-certs
797 secret:
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100798 secretName: {{ include "common.fullname" . }}-aaf-keys
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100799 - name: aai-common-aai-auth-mount
800 secret:
801 secretName: aai-common-aai-auth
802 - name: {{ include "common.fullname" . }}-auth-truststore-sec
803 secret:
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100804 secretName: aai-common-truststore
805 items:
806 {{ range $job := .Values.global.config.auth.files }}
807 - key: {{ . }}
808 path: {{ . }}
809 {{ end }}
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100810 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
811 imagePullSecrets:
812 - name: "{{ include "common.namespace" . }}-docker-registry-key"