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-business",
76 "url": "/aai/v11/business",
80 "lb_policy":"ip_hash",
82 "path": "/aai/v11/business"
85 "serviceName": "_aai-business",
87 "url": "/aai/v12/business",
91 "lb_policy":"ip_hash",
93 "path": "/aai/v12/business"
96 "serviceName": "_aai-business",
98 "url": "/aai/v13/business",
102 "lb_policy":"ip_hash",
104 "path": "/aai/v13/business"
107 "serviceName": "_aai-actions",
109 "url": "/aai/v11/actions",
113 "lb_policy":"ip_hash",
115 "path": "/aai/v11/actions"
118 "serviceName": "_aai-actions",
120 "url": "/aai/v12/actions",
124 "lb_policy":"ip_hash",
126 "path": "/aai/v12/actions"
129 "serviceName": "_aai-actions",
131 "url": "/aai/v13/actions",
135 "lb_policy":"ip_hash",
137 "path": "/aai/v13/actions"
140 "serviceName": "_aai-service-design-and-creation",
142 "url": "/aai/v11/service-design-and-creation",
146 "lb_policy":"ip_hash",
148 "path": "/aai/v11/service-design-and-creation"
151 "serviceName": "_aai-service-design-and-creation",
153 "url": "/aai/v12/service-design-and-creation",
157 "lb_policy":"ip_hash",
159 "path": "/aai/v12/service-design-and-creation"
162 "serviceName": "_aai-service-design-and-creation",
164 "url": "/aai/v13/service-design-and-creation",
168 "lb_policy":"ip_hash",
170 "path": "/aai/v13/service-design-and-creation"
173 "serviceName": "_aai-network",
175 "url": "/aai/v11/network",
179 "lb_policy":"ip_hash",
181 "path": "/aai/v11/network"
184 "serviceName": "_aai-network",
186 "url": "/aai/v12/network",
190 "lb_policy":"ip_hash",
192 "path": "/aai/v12/network"
195 "serviceName": "_aai-network",
197 "url": "/aai/v13/network",
201 "lb_policy":"ip_hash",
203 "path": "/aai/v13/network"
206 "serviceName": "_aai-externalSystem",
208 "url": "/aai/v11/external-system",
212 "lb_policy":"ip_hash",
214 "path": "/aai/v11/external-system"
217 "serviceName": "_aai-externalSystem",
219 "url": "/aai/v12/external-system",
223 "lb_policy":"ip_hash",
225 "path": "/aai/v12/external-system"
228 "serviceName": "_aai-externalSystem",
230 "url": "/aai/v13/external-system",
234 "lb_policy":"ip_hash",
236 "path": "/aai/v13/external-system"
239 "serviceName": "aai-cloudInfrastructure",
241 "url": "/aai/v11/cloud-infrastructure",
245 "lb_policy":"ip_hash",
249 "serviceName": "aai-cloudInfrastructure",
251 "url": "/aai/v12/cloud-infrastructure",
255 "lb_policy":"ip_hash",
259 "serviceName": "aai-cloudInfrastructure",
261 "url": "/aai/v13/cloud-infrastructure",
265 "lb_policy":"ip_hash",
269 "serviceName": "aai-business",
271 "url": "/aai/v11/business",
275 "lb_policy":"ip_hash",
279 "serviceName": "aai-business",
281 "url": "/aai/v12/business",
285 "lb_policy":"ip_hash",
289 "serviceName": "aai-business",
291 "url": "/aai/v13/business",
295 "lb_policy":"ip_hash",
299 "serviceName": "aai-actions",
301 "url": "/aai/v11/actions",
305 "lb_policy":"ip_hash",
309 "serviceName": "aai-actions",
311 "url": "/aai/v12/actions",
315 "lb_policy":"ip_hash",
319 "serviceName": "aai-actions",
321 "url": "/aai/v13/actions",
325 "lb_policy":"ip_hash",
329 "serviceName": "aai-service-design-and-creation",
331 "url": "/aai/v11/service-design-and-creation",
335 "lb_policy":"ip_hash",
339 "serviceName": "aai-service-design-and-creation",
341 "url": "/aai/v12/service-design-and-creation",
345 "lb_policy":"ip_hash",
349 "serviceName": "aai-service-design-and-creation",
351 "url": "/aai/v13/service-design-and-creation",
355 "lb_policy":"ip_hash",
359 "serviceName": "aai-network",
361 "url": "/aai/v11/network",
365 "lb_policy":"ip_hash",
369 "serviceName": "aai-network",
371 "url": "/aai/v12/network",
375 "lb_policy":"ip_hash",
379 "serviceName": "aai-network",
381 "url": "/aai/v13/network",
385 "lb_policy":"ip_hash",
389 "serviceName": "aai-externalSystem",
391 "url": "/aai/v11/external-system",
395 "lb_policy":"ip_hash",
399 "serviceName": "aai-externalSystem",
401 "url": "/aai/v12/external-system",
405 "lb_policy":"ip_hash",
409 "serviceName": "aai-externalSystem",
411 "url": "/aai/v13/external-system",
415 "lb_policy":"ip_hash",
420 hostname: aai-resources
432 fieldPath: metadata.namespace
433 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
434 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
435 name: {{ include "common.name" . }}-readiness
437 - name: {{ include "common.name" . }}
438 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
439 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
441 - name: LOCAL_USER_ID
442 value: {{ .Values.config.userId | quote }}
443 - name: LOCAL_GROUP_ID
444 value: {{ .Values.config.groupId | quote }}
446 - mountPath: /etc/localtime
449 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties
450 name: {{ include "common.fullname" . }}-db-real-conf
451 subPath: janusgraph-realtime.properties
452 - mountPath: /opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties
453 name: {{ include "common.fullname" . }}-db-cached-conf
454 subPath: janusgraph-cached.properties
455 - mountPath: /opt/app/aai-resources/resources/etc/appprops/aaiconfig.properties
456 name: {{ include "common.fullname" . }}-aaiconfig-conf
457 subPath: aaiconfig.properties
458 - mountPath: /opt/aai/logroot/AAI-RES
459 name: {{ include "common.fullname" . }}-logs
460 - mountPath: /opt/app/aai-resources/resources/logback.xml
461 name: {{ include "common.fullname" . }}-log-conf
463 - mountPath: /opt/app/aai-resources/resources/localhost-access-logback.xml
464 name: {{ include "common.fullname" . }}-localhost-access-log-conf
465 subPath: localhost-access-logback.xml
466 - mountPath: /opt/app/aai-resources/resources/application.properties
467 name: {{ include "common.fullname" . }}-springapp-conf
468 subPath: application.properties
469 - mountPath: /opt/app/aai-resources/resources/etc/auth/aai_keystore
470 name: {{ include "common.fullname" . }}-auth-sec
471 subPath: aai_keystore
473 - containerPort: {{ .Values.service.internalPort }}
474 - containerPort: {{ .Values.service.internalPort2 }}
475 # disable liveness probe when breakpoints set in debugger
476 # so K8s doesn't restart unresponsive container
477 {{ if .Values.liveness.enabled }}
480 port: {{ .Values.service.internalPort }}
481 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
482 periodSeconds: {{ .Values.liveness.periodSeconds }}
486 port: {{ .Values.service.internalPort }}
487 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
488 periodSeconds: {{ .Values.readiness.periodSeconds }}
490 {{ toYaml .Values.resources | indent 10 }}
491 {{- if .Values.nodeSelector }}
493 {{ toYaml .Values.nodeSelector | indent 8 }}
495 {{- if .Values.affinity }}
497 {{ toYaml .Values.affinity | indent 8 }}
500 # side car containers
501 - name: filebeat-onap
502 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
503 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
505 - mountPath: /usr/share/filebeat/filebeat.yml
506 subPath: filebeat.yml
508 - mountPath: /var/log/onap
509 name: {{ include "common.fullname" . }}-logs
510 - mountPath: /usr/share/filebeat/data
511 name: {{ include "common.fullname" . }}-filebeat
517 - name: filebeat-conf
520 - name: {{ include "common.fullname" . }}-logs
522 - name: {{ include "common.fullname" . }}-filebeat
524 - name: {{ include "common.fullname" . }}-log-conf
526 name: {{ include "common.fullname" . }}-log
527 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
529 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
530 - name: {{ include "common.fullname" . }}-db-real-conf
532 name: {{ include "common.fullname" . }}-db-real-configmap
533 - name: {{ include "common.fullname" . }}-db-cached-conf
535 name: {{ include "common.fullname" . }}-db-cached-configmap
536 - name: {{ include "common.fullname" . }}-aaiconfig-conf
538 name: {{ include "common.fullname" . }}-aaiconfig-configmap
539 - name: {{ include "common.fullname" . }}-springapp-conf
541 name: {{ include "common.fullname" . }}-springapp-configmap
542 - name: {{ include "common.fullname" . }}-realm-conf
544 name: {{ include "common.fullname" . }}-realm-configmap
545 - name: {{ include "common.fullname" . }}-auth-sec
547 secretName: aai-auth-secret
548 restartPolicy: {{ .Values.restartPolicy }}
550 - name: "{{ include "common.namespace" . }}-docker-registry-key"