1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
36 name: {{ include "common.name" . }}
38 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
39 msb.onap.org/service-info: '[
41 "serviceName": "_aai-cloudInfrastructure",
43 "url": "/aai/v11/cloud-infrastructure",
47 "lb_policy":"ip_hash",
49 "path": "/aai/v11/cloud-infrastructure"
52 "serviceName": "_aai-cloudInfrastructure",
54 "url": "/aai/v12/cloud-infrastructure",
58 "lb_policy":"ip_hash",
60 "path": "/aai/v12/cloud-infrastructure"
63 "serviceName": "_aai-cloudInfrastructure",
65 "url": "/aai/v13/cloud-infrastructure",
69 "lb_policy":"ip_hash",
71 "path": "/aai/v13/cloud-infrastructure"
74 "serviceName": "_aai-cloudInfrastructure",
76 "url": "/aai/v14/cloud-infrastructure",
80 "lb_policy":"ip_hash",
82 "path": "/aai/v14/cloud-infrastructure"
85 "serviceName": "_aai-business",
87 "url": "/aai/v11/business",
91 "lb_policy":"ip_hash",
93 "path": "/aai/v11/business"
96 "serviceName": "_aai-business",
98 "url": "/aai/v12/business",
102 "lb_policy":"ip_hash",
104 "path": "/aai/v12/business"
107 "serviceName": "_aai-business",
109 "url": "/aai/v13/business",
113 "lb_policy":"ip_hash",
115 "path": "/aai/v13/business"
118 "serviceName": "_aai-business",
120 "url": "/aai/v14/business",
124 "lb_policy":"ip_hash",
126 "path": "/aai/v14/business"
129 "serviceName": "_aai-actions",
131 "url": "/aai/v11/actions",
135 "lb_policy":"ip_hash",
137 "path": "/aai/v11/actions"
140 "serviceName": "_aai-actions",
142 "url": "/aai/v12/actions",
146 "lb_policy":"ip_hash",
148 "path": "/aai/v12/actions"
151 "serviceName": "_aai-actions",
153 "url": "/aai/v13/actions",
157 "lb_policy":"ip_hash",
159 "path": "/aai/v13/actions"
162 "serviceName": "_aai-actions",
164 "url": "/aai/v14/actions",
168 "lb_policy":"ip_hash",
170 "path": "/aai/v14/actions"
173 "serviceName": "_aai-service-design-and-creation",
175 "url": "/aai/v11/service-design-and-creation",
179 "lb_policy":"ip_hash",
181 "path": "/aai/v11/service-design-and-creation"
184 "serviceName": "_aai-service-design-and-creation",
186 "url": "/aai/v12/service-design-and-creation",
190 "lb_policy":"ip_hash",
192 "path": "/aai/v12/service-design-and-creation"
195 "serviceName": "_aai-service-design-and-creation",
197 "url": "/aai/v13/service-design-and-creation",
201 "lb_policy":"ip_hash",
203 "path": "/aai/v13/service-design-and-creation"
206 "serviceName": "_aai-service-design-and-creation",
208 "url": "/aai/v14/service-design-and-creation",
212 "lb_policy":"ip_hash",
214 "path": "/aai/v14/service-design-and-creation"
217 "serviceName": "_aai-network",
219 "url": "/aai/v11/network",
223 "lb_policy":"ip_hash",
225 "path": "/aai/v11/network"
228 "serviceName": "_aai-network",
230 "url": "/aai/v12/network",
234 "lb_policy":"ip_hash",
236 "path": "/aai/v12/network"
239 "serviceName": "_aai-network",
241 "url": "/aai/v13/network",
245 "lb_policy":"ip_hash",
247 "path": "/aai/v13/network"
250 "serviceName": "_aai-network",
252 "url": "/aai/v14/network",
256 "lb_policy":"ip_hash",
258 "path": "/aai/v14/network"
261 "serviceName": "_aai-externalSystem",
263 "url": "/aai/v11/external-system",
267 "lb_policy":"ip_hash",
269 "path": "/aai/v11/external-system"
272 "serviceName": "_aai-externalSystem",
274 "url": "/aai/v12/external-system",
278 "lb_policy":"ip_hash",
280 "path": "/aai/v12/external-system"
283 "serviceName": "_aai-externalSystem",
285 "url": "/aai/v13/external-system",
289 "lb_policy":"ip_hash",
291 "path": "/aai/v13/external-system"
294 "serviceName": "_aai-externalSystem",
296 "url": "/aai/v14/external-system",
300 "lb_policy":"ip_hash",
302 "path": "/aai/v14/external-system"
305 "serviceName": "aai-cloudInfrastructure",
307 "url": "/aai/v11/cloud-infrastructure",
311 "lb_policy":"ip_hash",
315 "serviceName": "aai-cloudInfrastructure",
317 "url": "/aai/v12/cloud-infrastructure",
321 "lb_policy":"ip_hash",
325 "serviceName": "aai-cloudInfrastructure",
327 "url": "/aai/v13/cloud-infrastructure",
331 "lb_policy":"ip_hash",
335 "serviceName": "aai-cloudInfrastructure",
337 "url": "/aai/v14/cloud-infrastructure",
341 "lb_policy":"ip_hash",
345 "serviceName": "aai-business",
347 "url": "/aai/v11/business",
351 "lb_policy":"ip_hash",
355 "serviceName": "aai-business",
357 "url": "/aai/v12/business",
361 "lb_policy":"ip_hash",
365 "serviceName": "aai-business",
367 "url": "/aai/v13/business",
371 "lb_policy":"ip_hash",
375 "serviceName": "aai-business",
377 "url": "/aai/v14/business",
381 "lb_policy":"ip_hash",
385 "serviceName": "aai-actions",
387 "url": "/aai/v11/actions",
391 "lb_policy":"ip_hash",
395 "serviceName": "aai-actions",
397 "url": "/aai/v12/actions",
401 "lb_policy":"ip_hash",
405 "serviceName": "aai-actions",
407 "url": "/aai/v13/actions",
411 "lb_policy":"ip_hash",
415 "serviceName": "aai-actions",
417 "url": "/aai/v14/actions",
421 "lb_policy":"ip_hash",
425 "serviceName": "aai-service-design-and-creation",
427 "url": "/aai/v11/service-design-and-creation",
431 "lb_policy":"ip_hash",
435 "serviceName": "aai-service-design-and-creation",
437 "url": "/aai/v12/service-design-and-creation",
441 "lb_policy":"ip_hash",
445 "serviceName": "aai-service-design-and-creation",
447 "url": "/aai/v13/service-design-and-creation",
451 "lb_policy":"ip_hash",
455 "serviceName": "aai-service-design-and-creation",
457 "url": "/aai/v14/service-design-and-creation",
461 "lb_policy":"ip_hash",
465 "serviceName": "aai-network",
467 "url": "/aai/v11/network",
471 "lb_policy":"ip_hash",
475 "serviceName": "aai-network",
477 "url": "/aai/v12/network",
481 "lb_policy":"ip_hash",
485 "serviceName": "aai-network",
487 "url": "/aai/v13/network",
491 "lb_policy":"ip_hash",
495 "serviceName": "aai-network",
497 "url": "/aai/v14/network",
501 "lb_policy":"ip_hash",
505 "serviceName": "aai-externalSystem",
507 "url": "/aai/v11/external-system",
511 "lb_policy":"ip_hash",
515 "serviceName": "aai-externalSystem",
517 "url": "/aai/v12/external-system",
521 "lb_policy":"ip_hash",
525 "serviceName": "aai-externalSystem",
527 "url": "/aai/v13/external-system",
531 "lb_policy":"ip_hash",
535 "serviceName": "aai-externalSystem",
537 "url": "/aai/v14/external-system",
541 "lb_policy":"ip_hash",
546 hostname: aai-resources
547 {{ if .Values.global.initContainers.enabled }}
550 {{ if .Values.global.jobs.createSchema.enabled }}
551 - /root/job_complete.py
554 - {{ .Release.Name }}-aai-graphadmin-create-db-schema
566 fieldPath: metadata.namespace
567 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
568 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
569 name: {{ include "common.name" . }}-readiness
572 - name: {{ include "common.name" . }}
573 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
574 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
576 - name: LOCAL_USER_ID
577 value: {{ .Values.global.config.userId | quote }}
578 - name: LOCAL_GROUP_ID
579 value: {{ .Values.global.config.groupId | quote }}
581 - mountPath: /etc/localtime
584 - 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
593 - mountPath: /opt/aai/logroot/AAI-RES
594 name: {{ include "common.fullname" . }}-logs
595 - mountPath: /opt/app/aai-resources/resources/logback.xml
596 name: {{ include "common.fullname" . }}-log-conf
598 - 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
601 - mountPath: /opt/app/aai-resources/resources/etc/auth/realm.properties
602 name: {{ include "common.fullname" . }}-realm-conf
603 subPath: realm.properties
604 - mountPath: /opt/app/aai-resources/resources/aaf/org.onap.aai.keyfile
605 name: {{ include "common.fullname" . }}-aaf-certs
606 subPath: org.onap.aai.keyfile
607 - mountPath: /opt/app/aai-resources/resources/aaf/bath_config.csv
608 name: {{ include "common.fullname" . }}-aaf-certs
609 subPath: bath_config.csv
610 - 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
628 - mountPath: /opt/app/aai-resources/resources/application.properties
629 name: {{ include "common.fullname" . }}-springapp-conf
630 subPath: application.properties
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
638 - 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 }}
645 port: {{ .Values.service.internalPort }}
646 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
647 periodSeconds: {{ .Values.liveness.periodSeconds }}
651 port: {{ .Values.service.internalPort }}
652 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
653 periodSeconds: {{ .Values.readiness.periodSeconds }}
655 {{ include "common.resources" . | indent 12 }}
656 {{- if .Values.nodeSelector }}
658 {{ toYaml .Values.nodeSelector | indent 8 }}
660 {{- if .Values.affinity }}
662 {{ toYaml .Values.affinity | indent 8 }}
665 # side car containers
666 - name: filebeat-onap
667 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
668 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
670 - mountPath: /usr/share/filebeat/filebeat.yml
671 subPath: filebeat.yml
673 - mountPath: /var/log/onap
674 name: {{ include "common.fullname" . }}-logs
675 - mountPath: /usr/share/filebeat/data
676 name: {{ include "common.fullname" . }}-filebeat
682 - name: filebeat-conf
685 - name: {{ include "common.fullname" . }}-logs
687 - name: {{ include "common.fullname" . }}-filebeat
689 - name: {{ include "common.fullname" . }}-log-conf
691 name: {{ include "common.fullname" . }}-log
692 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
694 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
695 - name: {{ include "common.fullname" . }}-db-real-conf
697 name: {{ include "common.fullname" . }}-db-real-configmap
698 - name: {{ include "common.fullname" . }}-db-cached-conf
700 name: {{ include "common.fullname" . }}-db-cached-configmap
701 - name: {{ include "common.fullname" . }}-aaiconfig-conf
703 name: {{ include "common.fullname" . }}-aaiconfig-configmap
704 - name: {{ include "common.fullname" . }}-aaf-properties
706 name: {{ include "common.fullname" . }}-aaf-props
707 - name: {{ include "common.fullname" . }}-aaf-certs
709 secretName: {{ include "common.fullname" . }}-aaf-keys
710 - name: {{ include "common.fullname" . }}-springapp-conf
712 name: {{ include "common.fullname" . }}-springapp-configmap
713 - name: {{ include "common.fullname" . }}-realm-conf
715 name: {{ include "common.fullname" . }}-realm-configmap
716 - name: {{ include "common.fullname" . }}-auth-truststore-sec
718 secretName: aai-auth-truststore-secret
720 {{ range $job := .Values.global.config.auth.files }}
724 restartPolicy: {{ .Values.restartPolicy }}
726 - name: "{{ include "common.namespace" . }}-docker-registry-key"