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-cloudInfrastructure",
42 "url": "/aai/v11/cloud-infrastructure",
46 "lb_policy":"ip_hash",
48 "path": "/aai/v11/cloud-infrastructure"
51 "serviceName": "_aai-cloudInfrastructure",
53 "url": "/aai/v12/cloud-infrastructure",
57 "lb_policy":"ip_hash",
59 "path": "/aai/v12/cloud-infrastructure"
62 "serviceName": "_aai-cloudInfrastructure",
64 "url": "/aai/v13/cloud-infrastructure",
68 "lb_policy":"ip_hash",
70 "path": "/aai/v13/cloud-infrastructure"
73 "serviceName": "_aai-business",
75 "url": "/aai/v11/business",
79 "lb_policy":"ip_hash",
81 "path": "/aai/v11/business"
84 "serviceName": "_aai-business",
86 "url": "/aai/v12/business",
90 "lb_policy":"ip_hash",
92 "path": "/aai/v12/business"
95 "serviceName": "_aai-business",
97 "url": "/aai/v13/business",
101 "lb_policy":"ip_hash",
103 "path": "/aai/v13/business"
106 "serviceName": "_aai-actions",
108 "url": "/aai/v11/actions",
112 "lb_policy":"ip_hash",
114 "path": "/aai/v11/actions"
117 "serviceName": "_aai-actions",
119 "url": "/aai/v12/actions",
123 "lb_policy":"ip_hash",
125 "path": "/aai/v12/actions"
128 "serviceName": "_aai-actions",
130 "url": "/aai/v13/actions",
134 "lb_policy":"ip_hash",
136 "path": "/aai/v13/actions"
139 "serviceName": "_aai-service-design-and-creation",
141 "url": "/aai/v11/service-design-and-creation",
145 "lb_policy":"ip_hash",
147 "path": "/aai/v11/service-design-and-creation"
150 "serviceName": "_aai-service-design-and-creation",
152 "url": "/aai/v12/service-design-and-creation",
156 "lb_policy":"ip_hash",
158 "path": "/aai/v12/service-design-and-creation"
161 "serviceName": "_aai-service-design-and-creation",
163 "url": "/aai/v13/service-design-and-creation",
167 "lb_policy":"ip_hash",
169 "path": "/aai/v13/service-design-and-creation"
172 "serviceName": "_aai-network",
174 "url": "/aai/v11/network",
178 "lb_policy":"ip_hash",
180 "path": "/aai/v11/network"
183 "serviceName": "_aai-network",
185 "url": "/aai/v12/network",
189 "lb_policy":"ip_hash",
191 "path": "/aai/v12/network"
194 "serviceName": "_aai-network",
196 "url": "/aai/v13/network",
200 "lb_policy":"ip_hash",
202 "path": "/aai/v13/network"
205 "serviceName": "_aai-externalSystem",
207 "url": "/aai/v11/external-system",
211 "lb_policy":"ip_hash",
213 "path": "/aai/v11/external-system"
216 "serviceName": "_aai-externalSystem",
218 "url": "/aai/v12/external-system",
222 "lb_policy":"ip_hash",
224 "path": "/aai/v12/external-system"
227 "serviceName": "_aai-externalSystem",
229 "url": "/aai/v13/external-system",
233 "lb_policy":"ip_hash",
235 "path": "/aai/v13/external-system"
238 "serviceName": "aai-cloudInfrastructure",
240 "url": "/aai/v11/cloud-infrastructure",
244 "lb_policy":"ip_hash",
248 "serviceName": "aai-cloudInfrastructure",
250 "url": "/aai/v12/cloud-infrastructure",
254 "lb_policy":"ip_hash",
258 "serviceName": "aai-cloudInfrastructure",
260 "url": "/aai/v13/cloud-infrastructure",
264 "lb_policy":"ip_hash",
268 "serviceName": "aai-business",
270 "url": "/aai/v11/business",
274 "lb_policy":"ip_hash",
278 "serviceName": "aai-business",
280 "url": "/aai/v12/business",
284 "lb_policy":"ip_hash",
288 "serviceName": "aai-business",
290 "url": "/aai/v13/business",
294 "lb_policy":"ip_hash",
298 "serviceName": "aai-actions",
300 "url": "/aai/v11/actions",
304 "lb_policy":"ip_hash",
308 "serviceName": "aai-actions",
310 "url": "/aai/v12/actions",
314 "lb_policy":"ip_hash",
318 "serviceName": "aai-actions",
320 "url": "/aai/v13/actions",
324 "lb_policy":"ip_hash",
328 "serviceName": "aai-service-design-and-creation",
330 "url": "/aai/v11/service-design-and-creation",
334 "lb_policy":"ip_hash",
338 "serviceName": "aai-service-design-and-creation",
340 "url": "/aai/v12/service-design-and-creation",
344 "lb_policy":"ip_hash",
348 "serviceName": "aai-service-design-and-creation",
350 "url": "/aai/v13/service-design-and-creation",
354 "lb_policy":"ip_hash",
358 "serviceName": "aai-network",
360 "url": "/aai/v11/network",
364 "lb_policy":"ip_hash",
368 "serviceName": "aai-network",
370 "url": "/aai/v12/network",
374 "lb_policy":"ip_hash",
378 "serviceName": "aai-network",
380 "url": "/aai/v13/network",
384 "lb_policy":"ip_hash",
388 "serviceName": "aai-externalSystem",
390 "url": "/aai/v11/external-system",
394 "lb_policy":"ip_hash",
398 "serviceName": "aai-externalSystem",
400 "url": "/aai/v12/external-system",
404 "lb_policy":"ip_hash",
408 "serviceName": "aai-externalSystem",
410 "url": "/aai/v13/external-system",
414 "lb_policy":"ip_hash",
419 hostname: aai-resources
431 fieldPath: metadata.namespace
432 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
433 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
434 name: {{ include "common.name" . }}-readiness
436 - name: {{ include "common.name" . }}
437 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
438 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
440 - name: LOCAL_USER_ID
441 value: {{ .Values.config.userId | quote }}
442 - name: LOCAL_GROUP_ID
443 value: {{ .Values.config.groupId | quote }}
445 - mountPath: /etc/localtime
448 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties
449 name: {{ include "common.fullname" . }}-db-real-conf
450 subPath: janusgraph-realtime.properties
451 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties
452 name: {{ include "common.fullname" . }}-db-cached-conf
453 subPath: janusgraph-cached.properties
454 - mountPath: /opt/app/aai-resources/resources/etc/appprops/aaiconfig.properties
455 name: {{ include "common.fullname" . }}-aaiconfig-conf
456 subPath: aaiconfig.properties
457 - mountPath: /opt/aai/logroot/AAI-RES
458 name: {{ include "common.fullname" . }}-logs
459 - mountPath: /opt/app/aai-resources/resources/logback.xml
460 name: {{ include "common.fullname" . }}-log-conf
462 - mountPath: /opt/app/aai-resources/resources/localhost-access-logback.xml
463 name: {{ include "common.fullname" . }}-localhost-access-log-conf
464 subPath: localhost-access-logback.xml
465 - mountPath: /opt/app/aai-resources/resources/application.properties
466 name: {{ include "common.fullname" . }}-springapp-conf
467 subPath: application.properties
468 - mountPath: /opt/app/aai-resources/resources/etc/auth/aai_keystore
469 name: {{ include "common.fullname" . }}-auth-sec
470 subPath: aai_keystore
472 - containerPort: {{ .Values.service.internalPort }}
473 - containerPort: {{ .Values.service.internalPort2 }}
474 # disable liveness probe when breakpoints set in debugger
475 # so K8s doesn't restart unresponsive container
476 {{ if .Values.liveness.enabled }}
479 port: {{ .Values.service.internalPort }}
480 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
481 periodSeconds: {{ .Values.liveness.periodSeconds }}
485 port: {{ .Values.service.internalPort }}
486 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
487 periodSeconds: {{ .Values.readiness.periodSeconds }}
489 {{ toYaml .Values.resources | indent 10 }}
490 {{- if .Values.nodeSelector }}
492 {{ toYaml .Values.nodeSelector | indent 8 }}
494 {{- if .Values.affinity }}
496 {{ toYaml .Values.affinity | indent 8 }}
499 # side car containers
500 - name: filebeat-onap
501 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
502 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
504 - mountPath: /usr/share/filebeat/filebeat.yml
505 subPath: filebeat.yml
507 - mountPath: /var/log/onap
508 name: {{ include "common.fullname" . }}-logs
509 - mountPath: /usr/share/filebeat/data
510 name: {{ include "common.fullname" . }}-filebeat
516 - name: filebeat-conf
519 - name: {{ include "common.fullname" . }}-logs
521 - name: {{ include "common.fullname" . }}-filebeat
523 - name: {{ include "common.fullname" . }}-log-conf
525 name: {{ include "common.fullname" . }}-log
526 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
528 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
529 - name: {{ include "common.fullname" . }}-db-real-conf
531 name: {{ include "common.fullname" . }}-db-real-configmap
532 - name: {{ include "common.fullname" . }}-db-cached-conf
534 name: {{ include "common.fullname" . }}-db-cached-configmap
535 - name: {{ include "common.fullname" . }}-aaiconfig-conf
537 name: {{ include "common.fullname" . }}-aaiconfig-configmap
538 - name: {{ include "common.fullname" . }}-springapp-conf
540 name: {{ include "common.fullname" . }}-springapp-configmap
541 - name: {{ include "common.fullname" . }}-realm-conf
543 name: {{ include "common.fullname" . }}-realm-configmap
544 - name: {{ include "common.fullname" . }}-auth-sec
546 secretName: aai-auth-secret
547 restartPolicy: {{ .Values.restartPolicy }}
549 - name: "{{ include "common.namespace" . }}-docker-registry-key"