blob: 437763186e031510cb8f3ddb1186abe1acaf18fb [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
toshrajbhardwajf4fc1c62018-08-06 07:35:14 +00002# Modifications Copyright © 2018 AT&T
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00003#
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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
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.
15
Mandeep Khinda4b881972017-08-30 14:24:02 +000016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
kj9bf27312018-03-19 15:07:44 +020019 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
21 labels:
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000026spec:
kj9bf27312018-03-19 15:07:44 +020027 replicas: {{ .Values.replicaCount }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000028 selector:
29 matchLabels:
kj9bf27312018-03-19 15:07:44 +020030 app: {{ include "common.name" . }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 template:
32 metadata:
33 labels:
kj9bf27312018-03-19 15:07:44 +020034 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
36 name: {{ include "common.name" . }}
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +010037 annotations:
Harish V Kajur8e7cbd22018-05-07 14:02:46 +000038 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +010039 msb.onap.org/service-info: '[
40 {
41 "serviceName": "_aai-cloudInfrastructure",
42 "version": "v11",
43 "url": "/aai/v11/cloud-infrastructure",
44 "protocol": "REST",
45 "port": "8447",
46 "enable_ssl": true,
47 "lb_policy":"ip_hash",
48 "visualRange": "1",
49 "path": "/aai/v11/cloud-infrastructure"
50 },
51 {
52 "serviceName": "_aai-cloudInfrastructure",
53 "version": "v12",
54 "url": "/aai/v12/cloud-infrastructure",
55 "protocol": "REST",
56 "port": "8447",
57 "enable_ssl": true,
58 "lb_policy":"ip_hash",
59 "visualRange": "1",
60 "path": "/aai/v12/cloud-infrastructure"
61 },
62 {
63 "serviceName": "_aai-cloudInfrastructure",
64 "version": "v13",
65 "url": "/aai/v13/cloud-infrastructure",
66 "protocol": "REST",
67 "port": "8447",
68 "enable_ssl": true,
69 "lb_policy":"ip_hash",
70 "visualRange": "1",
71 "path": "/aai/v13/cloud-infrastructure"
72 },
73 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +010074 "serviceName": "_aai-cloudInfrastructure",
75 "version": "v14",
76 "url": "/aai/v14/cloud-infrastructure",
77 "protocol": "REST",
78 "port": "8447",
79 "enable_ssl": true,
80 "lb_policy":"ip_hash",
81 "visualRange": "1",
82 "path": "/aai/v14/cloud-infrastructure"
83 },
84 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +010085 "serviceName": "_aai-business",
86 "version": "v11",
87 "url": "/aai/v11/business",
88 "protocol": "REST",
89 "port": "8447",
90 "enable_ssl": true,
91 "lb_policy":"ip_hash",
92 "visualRange": "1",
93 "path": "/aai/v11/business"
94 },
95 {
96 "serviceName": "_aai-business",
97 "version": "v12",
98 "url": "/aai/v12/business",
99 "protocol": "REST",
100 "port": "8447",
101 "enable_ssl": true,
102 "lb_policy":"ip_hash",
103 "visualRange": "1",
104 "path": "/aai/v12/business"
105 },
106 {
107 "serviceName": "_aai-business",
108 "version": "v13",
109 "url": "/aai/v13/business",
110 "protocol": "REST",
111 "port": "8447",
112 "enable_ssl": true,
113 "lb_policy":"ip_hash",
114 "visualRange": "1",
115 "path": "/aai/v13/business"
116 },
117 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100118 "serviceName": "_aai-business",
119 "version": "v14",
120 "url": "/aai/v14/business",
121 "protocol": "REST",
122 "port": "8447",
123 "enable_ssl": true,
124 "lb_policy":"ip_hash",
125 "visualRange": "1",
126 "path": "/aai/v14/business"
127 },
128 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100129 "serviceName": "_aai-actions",
130 "version": "v11",
131 "url": "/aai/v11/actions",
132 "protocol": "REST",
133 "port": "8447",
134 "enable_ssl": true,
135 "lb_policy":"ip_hash",
136 "visualRange": "1",
137 "path": "/aai/v11/actions"
138 },
139 {
140 "serviceName": "_aai-actions",
141 "version": "v12",
142 "url": "/aai/v12/actions",
143 "protocol": "REST",
144 "port": "8447",
145 "enable_ssl": true,
146 "lb_policy":"ip_hash",
147 "visualRange": "1",
148 "path": "/aai/v12/actions"
149 },
150 {
151 "serviceName": "_aai-actions",
152 "version": "v13",
153 "url": "/aai/v13/actions",
154 "protocol": "REST",
155 "port": "8447",
156 "enable_ssl": true,
157 "lb_policy":"ip_hash",
158 "visualRange": "1",
159 "path": "/aai/v13/actions"
160 },
161 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100162 "serviceName": "_aai-actions",
163 "version": "v14",
164 "url": "/aai/v14/actions",
165 "protocol": "REST",
166 "port": "8447",
167 "enable_ssl": true,
168 "lb_policy":"ip_hash",
169 "visualRange": "1",
170 "path": "/aai/v14/actions"
171 },
172 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100173 "serviceName": "_aai-service-design-and-creation",
174 "version": "v11",
175 "url": "/aai/v11/service-design-and-creation",
176 "protocol": "REST",
177 "port": "8447",
178 "enable_ssl": true,
179 "lb_policy":"ip_hash",
180 "visualRange": "1",
181 "path": "/aai/v11/service-design-and-creation"
182 },
183 {
184 "serviceName": "_aai-service-design-and-creation",
185 "version": "v12",
186 "url": "/aai/v12/service-design-and-creation",
187 "protocol": "REST",
188 "port": "8447",
189 "enable_ssl": true,
190 "lb_policy":"ip_hash",
191 "visualRange": "1",
192 "path": "/aai/v12/service-design-and-creation"
193 },
194 {
195 "serviceName": "_aai-service-design-and-creation",
196 "version": "v13",
197 "url": "/aai/v13/service-design-and-creation",
198 "protocol": "REST",
199 "port": "8447",
200 "enable_ssl": true,
201 "lb_policy":"ip_hash",
202 "visualRange": "1",
203 "path": "/aai/v13/service-design-and-creation"
204 },
205 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100206 "serviceName": "_aai-service-design-and-creation",
207 "version": "v14",
208 "url": "/aai/v14/service-design-and-creation",
209 "protocol": "REST",
210 "port": "8447",
211 "enable_ssl": true,
212 "lb_policy":"ip_hash",
213 "visualRange": "1",
214 "path": "/aai/v14/service-design-and-creation"
215 },
216 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100217 "serviceName": "_aai-network",
218 "version": "v11",
219 "url": "/aai/v11/network",
220 "protocol": "REST",
221 "port": "8447",
222 "enable_ssl": true,
223 "lb_policy":"ip_hash",
224 "visualRange": "1",
225 "path": "/aai/v11/network"
226 },
227 {
228 "serviceName": "_aai-network",
229 "version": "v12",
230 "url": "/aai/v12/network",
231 "protocol": "REST",
232 "port": "8447",
233 "enable_ssl": true,
234 "lb_policy":"ip_hash",
235 "visualRange": "1",
236 "path": "/aai/v12/network"
237 },
238 {
239 "serviceName": "_aai-network",
240 "version": "v13",
241 "url": "/aai/v13/network",
242 "protocol": "REST",
243 "port": "8447",
244 "enable_ssl": true,
245 "lb_policy":"ip_hash",
246 "visualRange": "1",
247 "path": "/aai/v13/network"
248 },
249 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100250 "serviceName": "_aai-network",
251 "version": "v14",
252 "url": "/aai/v14/network",
253 "protocol": "REST",
254 "port": "8447",
255 "enable_ssl": true,
256 "lb_policy":"ip_hash",
257 "visualRange": "1",
258 "path": "/aai/v14/network"
259 },
260 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100261 "serviceName": "_aai-externalSystem",
262 "version": "v11",
263 "url": "/aai/v11/external-system",
264 "protocol": "REST",
265 "port": "8447",
266 "enable_ssl": true,
267 "lb_policy":"ip_hash",
268 "visualRange": "1",
269 "path": "/aai/v11/external-system"
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100270 },
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100271 {
272 "serviceName": "_aai-externalSystem",
273 "version": "v12",
274 "url": "/aai/v12/external-system",
275 "protocol": "REST",
276 "port": "8447",
277 "enable_ssl": true,
278 "lb_policy":"ip_hash",
279 "visualRange": "1",
280 "path": "/aai/v12/external-system"
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100281 },
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100282 {
283 "serviceName": "_aai-externalSystem",
284 "version": "v13",
285 "url": "/aai/v13/external-system",
286 "protocol": "REST",
287 "port": "8447",
288 "enable_ssl": true,
289 "lb_policy":"ip_hash",
290 "visualRange": "1",
291 "path": "/aai/v13/external-system"
292 },
293 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100294 "serviceName": "_aai-externalSystem",
295 "version": "v14",
296 "url": "/aai/v14/external-system",
297 "protocol": "REST",
298 "port": "8447",
299 "enable_ssl": true,
300 "lb_policy":"ip_hash",
301 "visualRange": "1",
302 "path": "/aai/v14/external-system"
303 },
304 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100305 "serviceName": "aai-cloudInfrastructure",
306 "version": "v11",
307 "url": "/aai/v11/cloud-infrastructure",
308 "protocol": "REST",
309 "port": "8447",
310 "enable_ssl": true,
311 "lb_policy":"ip_hash",
312 "visualRange": "1"
313 },
314 {
315 "serviceName": "aai-cloudInfrastructure",
316 "version": "v12",
317 "url": "/aai/v12/cloud-infrastructure",
318 "protocol": "REST",
319 "port": "8447",
320 "enable_ssl": true,
321 "lb_policy":"ip_hash",
322 "visualRange": "1"
323 },
324 {
325 "serviceName": "aai-cloudInfrastructure",
326 "version": "v13",
327 "url": "/aai/v13/cloud-infrastructure",
328 "protocol": "REST",
329 "port": "8447",
330 "enable_ssl": true,
331 "lb_policy":"ip_hash",
332 "visualRange": "1"
333 },
334 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100335 "serviceName": "aai-cloudInfrastructure",
336 "version": "v14",
337 "url": "/aai/v14/cloud-infrastructure",
338 "protocol": "REST",
339 "port": "8447",
340 "enable_ssl": true,
341 "lb_policy":"ip_hash",
342 "visualRange": "1"
343 },
344 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100345 "serviceName": "aai-business",
346 "version": "v11",
347 "url": "/aai/v11/business",
348 "protocol": "REST",
349 "port": "8447",
350 "enable_ssl": true,
351 "lb_policy":"ip_hash",
352 "visualRange": "1"
353 },
354 {
355 "serviceName": "aai-business",
356 "version": "v12",
357 "url": "/aai/v12/business",
358 "protocol": "REST",
359 "port": "8447",
360 "enable_ssl": true,
361 "lb_policy":"ip_hash",
362 "visualRange": "1"
363 },
364 {
365 "serviceName": "aai-business",
366 "version": "v13",
367 "url": "/aai/v13/business",
368 "protocol": "REST",
369 "port": "8447",
370 "enable_ssl": true,
371 "lb_policy":"ip_hash",
372 "visualRange": "1"
373 },
374 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100375 "serviceName": "aai-business",
376 "version": "v14",
377 "url": "/aai/v14/business",
378 "protocol": "REST",
379 "port": "8447",
380 "enable_ssl": true,
381 "lb_policy":"ip_hash",
382 "visualRange": "1"
383 },
384 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100385 "serviceName": "aai-actions",
386 "version": "v11",
387 "url": "/aai/v11/actions",
388 "protocol": "REST",
389 "port": "8447",
390 "enable_ssl": true,
391 "lb_policy":"ip_hash",
392 "visualRange": "1"
393 },
394 {
395 "serviceName": "aai-actions",
396 "version": "v12",
397 "url": "/aai/v12/actions",
398 "protocol": "REST",
399 "port": "8447",
400 "enable_ssl": true,
401 "lb_policy":"ip_hash",
402 "visualRange": "1"
403 },
404 {
405 "serviceName": "aai-actions",
406 "version": "v13",
407 "url": "/aai/v13/actions",
408 "protocol": "REST",
409 "port": "8447",
410 "enable_ssl": true,
411 "lb_policy":"ip_hash",
412 "visualRange": "1"
413 },
414 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100415 "serviceName": "aai-actions",
416 "version": "v14",
417 "url": "/aai/v14/actions",
418 "protocol": "REST",
419 "port": "8447",
420 "enable_ssl": true,
421 "lb_policy":"ip_hash",
422 "visualRange": "1"
423 },
424 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100425 "serviceName": "aai-service-design-and-creation",
426 "version": "v11",
427 "url": "/aai/v11/service-design-and-creation",
428 "protocol": "REST",
429 "port": "8447",
430 "enable_ssl": true,
431 "lb_policy":"ip_hash",
432 "visualRange": "1"
433 },
434 {
435 "serviceName": "aai-service-design-and-creation",
436 "version": "v12",
437 "url": "/aai/v12/service-design-and-creation",
438 "protocol": "REST",
439 "port": "8447",
440 "enable_ssl": true,
441 "lb_policy":"ip_hash",
442 "visualRange": "1"
443 },
444 {
445 "serviceName": "aai-service-design-and-creation",
446 "version": "v13",
447 "url": "/aai/v13/service-design-and-creation",
448 "protocol": "REST",
449 "port": "8447",
450 "enable_ssl": true,
451 "lb_policy":"ip_hash",
452 "visualRange": "1"
453 },
454 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100455 "serviceName": "aai-service-design-and-creation",
456 "version": "v14",
457 "url": "/aai/v14/service-design-and-creation",
458 "protocol": "REST",
459 "port": "8447",
460 "enable_ssl": true,
461 "lb_policy":"ip_hash",
462 "visualRange": "1"
463 },
464 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100465 "serviceName": "aai-network",
466 "version": "v11",
467 "url": "/aai/v11/network",
468 "protocol": "REST",
469 "port": "8447",
470 "enable_ssl": true,
471 "lb_policy":"ip_hash",
472 "visualRange": "1"
473 },
474 {
475 "serviceName": "aai-network",
476 "version": "v12",
477 "url": "/aai/v12/network",
478 "protocol": "REST",
479 "port": "8447",
480 "enable_ssl": true,
481 "lb_policy":"ip_hash",
482 "visualRange": "1"
483 },
484 {
485 "serviceName": "aai-network",
486 "version": "v13",
487 "url": "/aai/v13/network",
488 "protocol": "REST",
489 "port": "8447",
490 "enable_ssl": true,
491 "lb_policy":"ip_hash",
492 "visualRange": "1"
493 },
494 {
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100495 "serviceName": "aai-network",
496 "version": "v14",
497 "url": "/aai/v14/network",
498 "protocol": "REST",
499 "port": "8447",
500 "enable_ssl": true,
501 "lb_policy":"ip_hash",
502 "visualRange": "1"
503 },
504 {
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100505 "serviceName": "aai-externalSystem",
506 "version": "v11",
507 "url": "/aai/v11/external-system",
508 "protocol": "REST",
509 "port": "8447",
510 "enable_ssl": true,
511 "lb_policy":"ip_hash",
512 "visualRange": "1"
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100513 },
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100514 {
515 "serviceName": "aai-externalSystem",
516 "version": "v12",
517 "url": "/aai/v12/external-system",
518 "protocol": "REST",
519 "port": "8447",
520 "enable_ssl": true,
521 "lb_policy":"ip_hash",
522 "visualRange": "1"
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100523 },
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100524 {
525 "serviceName": "aai-externalSystem",
526 "version": "v13",
527 "url": "/aai/v13/external-system",
528 "protocol": "REST",
529 "port": "8447",
530 "enable_ssl": true,
531 "lb_policy":"ip_hash",
532 "visualRange": "1"
Ondrej Frindrichd1400ca2018-12-03 12:46:16 +0100533 },
534 {
535 "serviceName": "aai-externalSystem",
536 "version": "v14",
537 "url": "/aai/v14/external-system",
538 "protocol": "REST",
539 "port": "8447",
540 "enable_ssl": true,
541 "lb_policy":"ip_hash",
542 "visualRange": "1"
kj9bf27312018-03-19 15:07:44 +0200543 }
AdrianSlavkovsky03cc5892018-03-08 09:55:53 +0100544 ]'
Mandeep Khinda4b881972017-08-30 14:24:02 +0000545 spec:
vagrant1a3a3552018-03-10 23:56:32 +0000546 hostname: aai-resources
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400547 {{ if .Values.global.initContainers.enabled }}
kiranya52a57832017-11-22 12:21:55 +0000548 initContainers:
549 - command:
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400550 {{ if .Values.global.jobs.createSchema.enabled }}
551 - /root/job_complete.py
552 args:
553 - --job-name
554 - {{ .Release.Name }}-aai-graphadmin-create-db-schema
555 {{ else }}
kiranya52a57832017-11-22 12:21:55 +0000556 - /root/ready.py
557 args:
558 - --container-name
vagrant1a3a3552018-03-10 23:56:32 +0000559 - aai-cassandra
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400560 {{ end }}
kiranya52a57832017-11-22 12:21:55 +0000561 env:
562 - name: NAMESPACE
563 valueFrom:
564 fieldRef:
565 apiVersion: v1
566 fieldPath: metadata.namespace
kj9bf27312018-03-19 15:07:44 +0200567 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
568 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
569 name: {{ include "common.name" . }}-readiness
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400570 {{ end }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000571 containers:
kj9bf27312018-03-19 15:07:44 +0200572 - name: {{ include "common.name" . }}
BorislavGdf11cd52018-05-06 12:55:20 +0000573 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
kj9bf27312018-03-19 15:07:44 +0200574 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000575 env:
vagrant1a3a3552018-03-10 23:56:32 +0000576 - name: LOCAL_USER_ID
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400577 value: {{ .Values.global.config.userId | quote }}
vagrant1a3a3552018-03-10 23:56:32 +0000578 - name: LOCAL_GROUP_ID
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400579 value: {{ .Values.global.config.groupId | quote }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000580 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +0300581 - mountPath: /etc/localtime
582 name: localtime
583 readOnly: true
vagrant1a3a3552018-03-10 23:56:32 +0000584 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties
585 name: {{ include "common.fullname" . }}-db-real-conf
586 subPath: janusgraph-realtime.properties
587 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties
588 name: {{ include "common.fullname" . }}-db-cached-conf
589 subPath: janusgraph-cached.properties
590 - mountPath: /opt/app/aai-resources/resources/etc/appprops/aaiconfig.properties
591 name: {{ include "common.fullname" . }}-aaiconfig-conf
592 subPath: aaiconfig.properties
Harish V Kajur8e7cbd22018-05-07 14:02:46 +0000593 - mountPath: /opt/aai/logroot/AAI-RES
vagrant1a3a3552018-03-10 23:56:32 +0000594 name: {{ include "common.fullname" . }}-logs
595 - mountPath: /opt/app/aai-resources/resources/logback.xml
596 name: {{ include "common.fullname" . }}-log-conf
BorislavGb2b99182017-10-03 15:40:55 +0300597 subPath: logback.xml
vagrant1a3a3552018-03-10 23:56:32 +0000598 - mountPath: /opt/app/aai-resources/resources/localhost-access-logback.xml
599 name: {{ include "common.fullname" . }}-localhost-access-log-conf
600 subPath: localhost-access-logback.xml
Kajur, Harish (vk250x)5386b5a2018-10-03 11:41:42 -0400601 - mountPath: /opt/app/aai-resources/resources/etc/auth/realm.properties
602 name: {{ include "common.fullname" . }}-realm-conf
603 subPath: realm.properties
Pavel Paroulek58ab38e2018-09-12 21:34:41 +0200604 - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.keyfile
605 name: {{ include "common.fullname" . }}-aaf-certs
606 subPath: org.onap.aai.keyfile
Pavel Paroulek8aaf2cf2018-10-16 15:21:06 +0200607 - mountPath: /opt/app/aai-resources/resources/aaf/bath_config.csv
608 name: {{ include "common.fullname" . }}-aaf-certs
609 subPath: bath_config.csv
Pavel Paroulek58ab38e2018-09-12 21:34:41 +0200610 - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.props
611 name: {{ include "common.fullname" . }}-aaf-properties
612 subPath: org.onap.aai.props
613 - mountPath: /opt/app/aai-resources/resources/aaf/org.osaaf.location.props
614 name: {{ include "common.fullname" . }}-aaf-properties
615 subPath: org.osaaf.location.props
616 - mountPath: /opt/app/aai-resources/resources/aaf/permissions.properties
617 name: {{ include "common.fullname" . }}-aaf-properties
618 subPath: permissions.properties
619 - mountPath: /opt/app/aai-resources/resources/cadi.properties
620 name: {{ include "common.fullname" . }}-aaf-properties
621 subPath: cadi.properties
622 - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.p12
623 name: {{ include "common.fullname" . }}-aaf-certs
624 subPath: org.onap.aai.p12
625 - mountPath: /opt/app/aai-resources/resources/aaf/truststoreONAPall.jks
626 name: {{ include "common.fullname" . }}-aaf-certs
627 subPath: truststoreONAPall.jks
vagrant1a3a3552018-03-10 23:56:32 +0000628 - mountPath: /opt/app/aai-resources/resources/application.properties
629 name: {{ include "common.fullname" . }}-springapp-conf
630 subPath: application.properties
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400631 {{ $global := . }}
632 {{ range $job := .Values.global.config.auth.files }}
633 - mountPath: /opt/app/aai-resources/resources/etc/auth/{{ . }}
634 name: {{ include "common.fullname" $global }}-auth-truststore-sec
635 subPath: {{ . }}
636 {{ end }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000637 ports:
kj9bf27312018-03-19 15:07:44 +0200638 - containerPort: {{ .Values.service.internalPort }}
639 - containerPort: {{ .Values.service.internalPort2 }}
640 # disable liveness probe when breakpoints set in debugger
641 # so K8s doesn't restart unresponsive container
642 {{ if .Values.liveness.enabled }}
643 livenessProbe:
644 tcpSocket:
645 port: {{ .Values.service.internalPort }}
646 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
647 periodSeconds: {{ .Values.liveness.periodSeconds }}
648 {{ end }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000649 readinessProbe:
650 tcpSocket:
kj9bf27312018-03-19 15:07:44 +0200651 port: {{ .Values.service.internalPort }}
652 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
653 periodSeconds: {{ .Values.readiness.periodSeconds }}
654 resources:
Mandeep Khinda5e3f36a2018-09-24 15:25:42 +0000655{{ include "common.resources" . | indent 12 }}
kj9bf27312018-03-19 15:07:44 +0200656 {{- if .Values.nodeSelector }}
657 nodeSelector:
658{{ toYaml .Values.nodeSelector | indent 8 }}
659 {{- end -}}
660 {{- if .Values.affinity }}
661 affinity:
662{{ toYaml .Values.affinity | indent 8 }}
663 {{- end }}
664
665 # side car containers
666 - name: filebeat-onap
667 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
668 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
BorislavGb2b99182017-10-03 15:40:55 +0300669 volumeMounts:
670 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703f313ba92018-02-05 09:01:02 +0000671 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +0300672 name: filebeat-conf
673 - mountPath: /var/log/onap
vagrant1a3a3552018-03-10 23:56:32 +0000674 name: {{ include "common.fullname" . }}-logs
BorislavGb2b99182017-10-03 15:40:55 +0300675 - mountPath: /usr/share/filebeat/data
vagrant1a3a3552018-03-10 23:56:32 +0000676 name: {{ include "common.fullname" . }}-filebeat
kj9bf27312018-03-19 15:07:44 +0200677
Mandeep Khinda4b881972017-08-30 14:24:02 +0000678 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300679 - name: localtime
680 hostPath:
681 path: /etc/localtime
BorislavGb2b99182017-10-03 15:40:55 +0300682 - name: filebeat-conf
mayankg2703f313ba92018-02-05 09:01:02 +0000683 configMap:
kj9bf27312018-03-19 15:07:44 +0200684 name: aai-filebeat
vagrant1a3a3552018-03-10 23:56:32 +0000685 - name: {{ include "common.fullname" . }}-logs
BorislavGb2b99182017-10-03 15:40:55 +0300686 emptyDir: {}
vagrant1a3a3552018-03-10 23:56:32 +0000687 - name: {{ include "common.fullname" . }}-filebeat
BorislavGb2b99182017-10-03 15:40:55 +0300688 emptyDir: {}
vagrant1a3a3552018-03-10 23:56:32 +0000689 - name: {{ include "common.fullname" . }}-log-conf
BorislavGb2b99182017-10-03 15:40:55 +0300690 configMap:
vagrant1a3a3552018-03-10 23:56:32 +0000691 name: {{ include "common.fullname" . }}-log
692 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
693 configMap:
694 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
695 - name: {{ include "common.fullname" . }}-db-real-conf
696 configMap:
697 name: {{ include "common.fullname" . }}-db-real-configmap
698 - name: {{ include "common.fullname" . }}-db-cached-conf
699 configMap:
700 name: {{ include "common.fullname" . }}-db-cached-configmap
701 - name: {{ include "common.fullname" . }}-aaiconfig-conf
702 configMap:
703 name: {{ include "common.fullname" . }}-aaiconfig-configmap
Pavel Paroulek58ab38e2018-09-12 21:34:41 +0200704 - name: {{ include "common.fullname" . }}-aaf-properties
705 configMap:
706 name: {{ include "common.fullname" . }}-aaf-props
707 - name: {{ include "common.fullname" . }}-aaf-certs
708 secret:
709 secretName: {{ include "common.fullname" . }}-aaf-keys
vagrant1a3a3552018-03-10 23:56:32 +0000710 - name: {{ include "common.fullname" . }}-springapp-conf
711 configMap:
712 name: {{ include "common.fullname" . }}-springapp-configmap
713 - name: {{ include "common.fullname" . }}-realm-conf
714 configMap:
715 name: {{ include "common.fullname" . }}-realm-configmap
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400716 - name: {{ include "common.fullname" . }}-auth-truststore-sec
vagrant1a3a3552018-03-10 23:56:32 +0000717 secret:
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -0400718 secretName: aai-auth-truststore-secret
719 items:
720 {{ range $job := .Values.global.config.auth.files }}
721 - key: {{ . }}
722 path: {{ . }}
723 {{ end }}
vagrant1a3a3552018-03-10 23:56:32 +0000724 restartPolicy: {{ .Values.restartPolicy }}
Mandeep Khinda4b881972017-08-30 14:24:02 +0000725 imagePullSecrets:
kj9bf27312018-03-19 15:07:44 +0200726 - name: "{{ include "common.namespace" . }}-docker-registry-key"