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-generic-query",
43 "url": "/aai/v11/search/generic-query",
47 "lb_policy":"ip_hash",
49 "path": "/aai/v11/search/generic-query"
52 "serviceName": "_aai-generic-query",
54 "url": "/aai/v12/search/generic-query",
58 "lb_policy":"ip_hash",
60 "path": "/aai/v12/search/generic-query"
63 "serviceName": "_aai-generic-query",
65 "url": "/aai/v13/search/generic-query",
69 "lb_policy":"ip_hash",
71 "path": "/aai/v13/search/generic-query"
74 "serviceName": "_aai-generic-query",
76 "url": "/aai/v14/search/generic-query",
80 "lb_policy":"ip_hash",
82 "path": "/aai/v14/search/generic-query"
85 "serviceName": "_aai-nodes-query",
87 "url": "/aai/v11/search/nodes-query",
91 "lb_policy":"ip_hash",
93 "path": "/aai/v11/search/nodes-query"
96 "serviceName": "_aai-nodes-query",
98 "url": "/aai/v12/search/nodes-query",
102 "lb_policy":"ip_hash",
104 "path": "/aai/v12/search/nodes-query"
107 "serviceName": "_aai-nodes-query",
109 "url": "/aai/v13/search/nodes-query",
113 "lb_policy":"ip_hash",
115 "path": "/aai/v13/search/nodes-query"
118 "serviceName": "_aai-nodes-query",
120 "url": "/aai/v14/search/nodes-query",
124 "lb_policy":"ip_hash",
126 "path": "/aai/v14/search/nodes-query"
129 "serviceName": "_aai-query",
131 "url": "/aai/v11/query",
135 "lb_policy":"ip_hash",
137 "path": "/aai/v11/query"
140 "serviceName": "_aai-query",
142 "url": "/aai/v12/query",
146 "lb_policy":"ip_hash",
148 "path": "/aai/v12/query"
151 "serviceName": "_aai-query",
153 "url": "/aai/v13/query",
157 "lb_policy":"ip_hash",
159 "path": "/aai/v13/query"
162 "serviceName": "_aai-query",
164 "url": "/aai/v14/query",
168 "lb_policy":"ip_hash",
170 "path": "/aai/v14/query"
173 "serviceName": "_aai-named-query",
174 "url": "/aai/search",
178 "lb_policy":"ip_hash",
180 "path": "/aai/search"
183 "serviceName": "aai-generic-query",
185 "url": "/aai/v11/search/generic-query",
189 "lb_policy":"ip_hash",
193 "serviceName": "aai-generic-query",
195 "url": "/aai/v12/search/generic-query",
199 "lb_policy":"ip_hash",
203 "serviceName": "aai-generic-query",
205 "url": "/aai/v13/search/generic-query",
209 "lb_policy":"ip_hash",
213 "serviceName": "aai-generic-query",
215 "url": "/aai/v14/search/generic-query",
219 "lb_policy":"ip_hash",
223 "serviceName": "aai-nodes-query",
225 "url": "/aai/v11/search/nodes-query",
229 "lb_policy":"ip_hash",
233 "serviceName": "aai-nodes-query",
235 "url": "/aai/v12/search/nodes-query",
239 "lb_policy":"ip_hash",
243 "serviceName": "aai-nodes-query",
245 "url": "/aai/v13/search/nodes-query",
249 "lb_policy":"ip_hash",
253 "serviceName": "aai-nodes-query",
255 "url": "/aai/v14/search/nodes-query",
259 "lb_policy":"ip_hash",
263 "serviceName": "aai-query",
265 "url": "/aai/v11/query",
269 "lb_policy":"ip_hash",
273 "serviceName": "aai-query",
275 "url": "/aai/v12/query",
279 "lb_policy":"ip_hash",
283 "serviceName": "aai-query",
285 "url": "/aai/v13/query",
289 "lb_policy":"ip_hash",
293 "serviceName": "aai-query",
295 "url": "/aai/v14/query",
299 "lb_policy":"ip_hash",
303 "serviceName": "aai-named-query",
304 "url": "/aai/search",
308 "lb_policy":"ip_hash",
313 hostname: aai-traversal
314 {{ if .Values.global.initContainers.enabled }}
317 {{ if .Values.global.jobs.createSchema.enabled }}
318 - /root/job_complete.py
321 - {{ .Release.Name }}-aai-graphadmin-create-db-schema
335 fieldPath: metadata.namespace
336 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
337 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
338 name: {{ include "common.name" . }}-readiness
341 - name: {{ include "common.name" . }}
342 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
343 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
345 - name: DISABLE_UPDATE_QUERY
346 value: {{ .Values.config.disableUpdateQuery | quote }}
347 - name: LOCAL_USER_ID
348 value: {{ .Values.global.config.userId | quote }}
349 - name: LOCAL_GROUP_ID
350 value: {{ .Values.global.config.groupId | quote }}
352 - mountPath: /etc/localtime
355 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
356 name: {{ include "common.fullname" . }}-db-real-conf
357 subPath: janusgraph-realtime.properties
358 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
359 name: {{ include "common.fullname" . }}-db-cached-conf
360 subPath: janusgraph-cached.properties
361 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
362 name: {{ include "common.fullname" . }}-aaiconfig-conf
363 subPath: aaiconfig.properties
364 - mountPath: /opt/aai/logroot/AAI-GQ
365 name: {{ include "common.fullname" . }}-logs
366 - mountPath: /opt/app/aai-traversal/resources/logback.xml
367 name: {{ include "common.fullname" . }}-log-conf
369 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
370 name: {{ include "common.fullname" . }}-localhost-access-log-conf
371 subPath: localhost-access-logback.xml
372 - mountPath: /opt/app/aai-traversal/resources/etc/auth/realm.properties
373 name: {{ include "common.fullname" . }}-realm-conf
374 subPath: realm.properties
375 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.keyfile
376 name: {{ include "common.fullname" . }}-aaf-certs
377 subPath: org.onap.aai.keyfile
378 - mountPath: /opt/app/aai-traversal/resources/aaf/bath_config.csv
379 name: {{ include "common.fullname" . }}-aaf-certs
380 subPath: bath_config.csv
381 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.props
382 name: {{ include "common.fullname" . }}-aaf-properties
383 subPath: org.onap.aai.props
384 - mountPath: /opt/app/aai-traversal/resources/aaf/org.osaaf.location.props
385 name: {{ include "common.fullname" . }}-aaf-properties
386 subPath: org.osaaf.location.props
387 - mountPath: /opt/app/aai-traversal/resources/aaf/permissions.properties
388 name: {{ include "common.fullname" . }}-aaf-properties
389 subPath: permissions.properties
390 - mountPath: /opt/app/aai-traversal/resources/cadi.properties
391 name: {{ include "common.fullname" . }}-aaf-properties
392 subPath: cadi.properties
393 - mountPath: /opt/app/aai-traversal/resources/aaf/org.onap.aai.p12
394 name: {{ include "common.fullname" . }}-aaf-certs
395 subPath: org.onap.aai.p12
396 - mountPath: /opt/app/aai-traversal/resources/aaf/truststoreONAPall.jks
397 name: aai-common-aai-auth-mount
398 subPath: truststoreONAPall.jks
399 - mountPath: /opt/app/aai-traversal/resources/application.properties
400 name: {{ include "common.fullname" . }}-springapp-conf
401 subPath: application.properties
403 {{ range $job := .Values.global.config.auth.files }}
404 - mountPath: /opt/app/aai-traversal/resources/etc/auth/{{ . }}
405 name: {{ include "common.fullname" $global }}-auth-truststore-sec
409 - containerPort: {{ .Values.service.internalPort }}
410 - containerPort: {{ .Values.service.internalPort2 }}
411 # disable liveness probe when breakpoints set in debugger
412 # so K8s doesn't restart unresponsive container
413 {{ if .Values.liveness.enabled }}
416 port: {{ .Values.service.internalPort }}
417 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
418 periodSeconds: {{ .Values.liveness.periodSeconds }}
422 port: {{ .Values.service.internalPort }}
423 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
424 periodSeconds: {{ .Values.readiness.periodSeconds }}
426 {{ include "common.resources" . }}
427 {{- if .Values.nodeSelector }}
429 {{ toYaml .Values.nodeSelector | indent 8 }}
431 {{- if .Values.affinity }}
433 {{ toYaml .Values.affinity | indent 8 }}
436 # side car containers
437 - name: filebeat-onap
438 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
439 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
441 - mountPath: /usr/share/filebeat/filebeat.yml
442 subPath: filebeat.yml
444 - mountPath: /var/log/onap
445 name: {{ include "common.fullname" . }}-logs
446 - mountPath: /usr/share/filebeat/data
447 name: {{ include "common.fullname" . }}-filebeat
449 {{ include "common.resources" . }}
454 - name: filebeat-conf
457 - name: {{ include "common.fullname" . }}-logs
459 - name: {{ include "common.fullname" . }}-filebeat
461 - name: {{ include "common.fullname" . }}-log-conf
463 name: {{ include "common.fullname" . }}-log
464 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
466 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
467 - name: {{ include "common.fullname" . }}-db-real-conf
469 name: {{ include "common.fullname" . }}-db-real-configmap
470 - name: {{ include "common.fullname" . }}-db-cached-conf
472 name: {{ include "common.fullname" . }}-db-cached-configmap
473 - name: {{ include "common.fullname" . }}-aaiconfig-conf
475 name: {{ include "common.fullname" . }}-aaiconfig-configmap
476 - name: {{ include "common.fullname" . }}-aaf-properties
478 name: {{ include "common.fullname" . }}-aaf-props
479 - name: {{ include "common.fullname" . }}-aaf-certs
481 secretName: {{ include "common.fullname" . }}-aaf-keys
482 - name: aai-common-aai-auth-mount
484 secretName: aai-common-aai-auth
485 - name: {{ include "common.fullname" . }}-springapp-conf
487 name: {{ include "common.fullname" . }}-springapp-configmap
488 - name: {{ include "common.fullname" . }}-realm-conf
490 name: {{ include "common.fullname" . }}-realm-configmap
491 - name: {{ include "common.fullname" . }}-auth-truststore-sec
493 secretName: aai-common-truststore
495 {{ range $job := .Values.global.config.auth.files }}
499 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
501 - name: "{{ include "common.namespace" . }}-docker-registry-key"