blob: c75bb8f569cfce0f83482f46e6386b2ba27762ab [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright (c) 2018 Amdocs, Bell Canada, AT&T
2# Modifications Copyright (c) 2020 Nokia
Sylvain Desbureaux331f0042021-01-18 11:38:49 +01003# Modifications Copyright (c) 2021 Orange
efiacord12c1672023-03-23 12:10:50 +00004# Modifications Copyright © 2023 Nordix Foundation
Sylvain Desbureaux70070412020-11-09 21:58:48 +01005#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18# Default values for traversal.
19# This is a YAML-formatted file.
20# Declare variables to be passed into your templates.
21global: # global defaults
22 nodePortPrefix: 302
Kvbc2df7b2024-05-20 11:31:17 +053023 kafkaBootstrap: strimzi-kafka-bootstrap
24 aaiTravKafkaUser: aai-trav-kafka-user
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +020025
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010026 cassandra:
27 #Service Name of the cassandra cluster to connect to.
28 #Override it to aai-cassandra if localCluster is enabled.
29 serviceName: cassandra
30
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010031 # Specifies a list of jobs to be run
32 jobs:
33 # When enabled, it will create the schema based on oxm and edge rules
34 createSchema:
35 enabled: true
36 # When enabled, it will create the widget models via REST API to haproxy
37 updateQueryData:
38 enabled: true
39 #migration using helm hooks
40 migration:
41 enabled: false
42
43 # Common configuration for resources traversal and graphadmin
44 config:
45 # User information for the admin user in container
46 userId: 1000
47 groupId: 1000
48
49 # Specifies that the cluster connected to a dynamic
50 # cluster being spinned up by kubernetes deployment
51 cluster:
52 cassandra:
53 dynamic: true
54
55 # Specifies if the basic authorization is enabled
56 basic:
57 auth:
58 enabled: true
59 username: AAI
60 passwd: AAI
61
62 # Active spring profiles for the resources microservice
63 profiles:
Kvbc2df7b2024-05-20 11:31:17 +053064 active: production,kafka
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010065
66 # Notification event specific properties
67 notification:
68 eventType: AAI-EVENT
69 domain: dev
70
71 # Schema specific properties that include supported versions of api
72 schema:
73 # Specifies if the connection should be one way ssl, two way ssl or no auth
74 service:
efiacord12c1672023-03-23 12:10:50 +000075 client: no-auth
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010076 # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
77 translator:
78 list: schema-service
79 source:
80 # Specifies which folder to take a look at
81 name: onap
82 uri:
83 # Base URI Path of the application
84 base:
85 path: /aai
86 version:
87 # Current version of the REST API
88 api:
Fiete Ostkamp1da99652024-05-28 08:51:51 +020089 default: v29
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010090 # Specifies which version the depth parameter is configurable
91 depth: v11
92 # List of all the supported versions of the API
Fiete Ostkamp1da99652024-05-28 08:51:51 +020093 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010094 # Specifies from which version related link should appear
95 related:
96 link: v11
97 # Specifies from which version the app root change happened
98 app:
99 root: v11
100 # Specifies from which version the xml namespace changed
101 namespace:
102 change: v12
103 # Specifies from which version the edge label appeared in API
104 edge:
105 label: v12
106
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100107 # Specifies which clients should always default to realtime graph connection
108 realtime:
109 clients: SDNC,MSO,SO,robot-ete
Kvbc2df7b2024-05-20 11:31:17 +0530110 kafkaBootstrap: strimzi-kafka-bootstrap
111 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.aaiTravKafkaUser }}'
112 someConfig: random
113 aaiTopic: AAI-EVENT
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100114
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100115# application image
Fiete Ostkamp004ebce2024-07-05 15:26:43 +0200116image: onap/aai-traversal:1.14.4
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100117pullPolicy: Always
118restartPolicy: Always
119flavor: small
120flavorOverride: small
M.Hosnidokht15fea932021-08-25 09:08:40 -0400121# the minimum number of seconds that a newly created Pod should be ready
122minReadySeconds: 30
123updateStrategy:
124 type: RollingUpdate
125 # The number of pods that can be unavailable during the update process
126 maxUnavailable: 0
127 # The number of pods that can be created above the desired amount of pods during an update
128 maxSurge: 1
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100129
130api_list:
131 - 11
132 - 12
133 - 13
134 - 14
135 - 15
136 - 16
137 - 17
138 - 18
139 - 19
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200140 - 20
141 - 21
142 - 22
143 - 23
144 - 24
145 - 25
146 - 26
147 - 27
148 - 28
149 - 29
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100150
151aai_enpoints:
152 - name: aai-generic-query
153 url: search/generic-query
154 - name: aai-nodes-query
155 url: search/nodes-query
156 - name: aai-nquery
157 url: query
158
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100159# application configuration
160config:
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200161
Sam Huang56a6dd42021-03-26 13:27:17 -0600162 # configure keycloak according to your environment.
163 # don't forget to add keycloak in active profiles above (global.config.profiles)
164 keycloak:
165 host: keycloak.your.domain
166 port: 8180
167 # Specifies a set of users, credentials, roles, and groups
168 realm: aai-traversal
169 # Used by any client application for enabling fine-grained authorization for their protected resources
170 resource: aai-traversal-app
171 # If set to true, additional criteria will be added into traversal query to returns all the vertices that match
172 # the data-owner property with the given role to the user in keycloak
173 multiTenancy:
174 enabled: true
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100175 janusgraph:
176 caching:
177 # enable when running read-heavy workloads
178 # modifications to graph done by this service/janusgraph instance will immediately invalidate the cache
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200179 # modifications to graph done by other services (traversal) will only be visible
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100180 # after time specified in db-cache-time
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200181 enabled: true
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100182 # Documentation: https://docs.janusgraph.org/operations/cache/#database-level-caching
183 dbCacheTime: 180000 # in milliseconds
184 dbCacheSize: 0.1 # percentage (expressed as a decimal between 0 and 1) of the total heap space available to the JVM running
185 dbCacheCleanWait: 20 # in milliseconds
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200186 # temporarily enable this to update the graph storage version
187 # see: https://docs.janusgraph.org/changelog/#upgrade-instructions_9
188 allowUpgrade: true
Sam Huang56a6dd42021-03-26 13:27:17 -0600189
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100190 # Specifies timeout information such as application specific and limits
191 timeout:
192 # If set to true application will timeout for queries taking longer than limit
193 enabled: true
194 # Specifies which apps (X-FromAppId) header should get overridden and (-1) no timeout
195 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAI-FILEGEN-GFPIP,-1
196 # Specifies how long should it wait before timing out the REST request
197 limit: 180000
198
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200199 # environment variables added to the launch of the image in deployment
200 env:
201 MIN_HEAP_SIZE: "512m"
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200202 MAX_HEAP_SIZE: "2g"
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200203 MAX_METASPACE_SIZE: "512m"
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200204 # POST_JVM_ARGS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200205
Fiete Ostkamp21d48642024-01-16 08:33:59 +0100206 # adds jvm args for remote debugging the application
207 debug:
208 enabled: false
209 args: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
210
211 # adds jvm args for remote profiling the application
212 profiling:
213 enabled: false
214 args:
215 - "-Dcom.sun.management.jmxremote"
216 - "-Dcom.sun.management.jmxremote.ssl=false"
217 - "-Dcom.sun.management.jmxremote.authenticate=false"
218 - "-Dcom.sun.management.jmxremote.local.only=false"
219 - "-Dcom.sun.management.jmxremote.port=9999"
220 - "-Dcom.sun.management.jmxremote.rmi.port=9999"
221 - "-Djava.rmi.server.hostname=127.0.0.1"
222
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100223 # Disables the updateQueryData script to run as part of traversal
224 disableUpdateQuery: true
225
226 # Override of the DSL Timeout Limit
227 dslOverride: 'ZV4V7E3N77SKIB6MR9MHQ6M4P6Q99Z7M76RBODA'
228
229 dsl:
230 # Dsl timeout configuration
231 timeout:
232 # Whether or not the dsl is enabled
233 enabled: true
234 # Default time limit of the DSL query
235 limit: 150000
236 # App Specific Timeout Limit for each of the X-FromAppId
237 appspecific:
238 - JUNITTESTAPP1,1
239 - JUNITTESTAPP2,-1
240 - AAI-TOOLS,-1
241 - DCAE-CCS,1200000
242 - DCAES,1200000
243 - VPESAT,-1
244 - AAI-CACHER,-1
245 - VidAaiController,300000
246 - AAI-UI,180000
247
248persistence:
249 mountPath: /dockerdata-nfs
250 mountSubPath: aai/aai-traversal
251
252# default number of instances
253replicaCount: 1
254
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200255# number of ReplicaSets that should be retained for the Deployment
256revisionHistoryLimit: 2
257
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100258nodeSelector: {}
259
260affinity: {}
261
262# probe configuration parameters
263liveness:
264 initialDelaySeconds: 60
265 periodSeconds: 60
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200266 enabled: true
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100267
268readiness:
269 initialDelaySeconds: 10
270 periodSeconds: 10
271
272service:
273 type: ClusterIP
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200274 traversalPortName: http
275 traversalPort: 8446
276 debugPortName: tcp-5005
277 debugPort: 5005
278 metricsPortName: metrics
279 metricsPort: 8448
280 profilingPortName: jmx-9999
281 profilingPort: 9999
282 terminationGracePeriodSeconds: 60
leila46fb5802022-11-15 11:33:21 -0500283 sessionAffinity: None
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100284
285ingress:
286 enabled: false
287
AndrewLamb0e7c7fe2023-05-17 14:13:54 +0100288serviceMesh:
289 authorizationPolicy:
290 authorizedPrincipals:
291 - serviceAccount: aai-read
292 - serviceAccount: consul-read
293
leilab3bfd4d2022-11-10 14:27:16 -0500294# To make logback capping values configurable
295logback:
Fiete Ostkamp49a40b22023-11-14 10:35:03 +0100296 logToFileEnabled: false
leilab3bfd4d2022-11-10 14:27:16 -0500297 maxHistory: 7
298 totalSizeCap: 6GB
299 queueSize: 1000
300
301accessLogback:
Fiete Ostkamp49a40b22023-11-14 10:35:03 +0100302 logToFileEnabled: false
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200303 livenessAccessLogEnabled: false # false: do not log kubernetes liveness probes
leilab3bfd4d2022-11-10 14:27:16 -0500304 maxHistory: 7
305 totalSizeCap: 6GB
306
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100307# Configure resource requests and limits
308# ref: http://kubernetes.io/docs/user-guide/compute-resources/
309resources:
310 small:
311 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100312 cpu: "2"
313 memory: "4Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100314 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100315 cpu: "1"
316 memory: "3Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100317 large:
318 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100319 cpu: "4"
320 memory: "8Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100321 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100322 cpu: "2"
323 memory: "4Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100324 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200325
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200326tracing:
327 collector:
328 baseUrl: http://jaeger-collector.istio-system:9411
329 sampling:
330 probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
331 ignorePatterns:
332 - /aai/util.*
333
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100334endpoints:
335 enabled: true
336 health:
337 enabled: true
338 info:
339 enabled: true
340
leila46fb5802022-11-15 11:33:21 -0500341metrics:
342 serviceMonitor:
343 enabled: false
344 targetPort: 8448
Fiete Ostkamp63f8bfd2024-01-10 16:11:43 +0100345 path: /actuator/prometheus
leila46fb5802022-11-15 11:33:21 -0500346 basicAuth:
347 enabled: false
348 externalSecretName: mysecretname
349 externalSecretUserKey: login
350 externalSecretPasswordKey: password
351
352 ## Namespace in which Prometheus is running
353 ##
354 # namespace: monitoring
355
356 ## Interval at which metrics should be scraped.
357 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
358 ##
359 #interval: 30s
360
361 ## Timeout after which the scrape is ended
362 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
363 ##
364 # scrapeTimeout: 10s
365
366 ## ServiceMonitor selector labels
367 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
368 ##
369 selector:
370 app: '{{ include "common.name" . }}'
371 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
372 release: '{{ include "common.release" . }}'
373 heritage: '{{ .Release.Service }}'
374
375 ## RelabelConfigs to apply to samples before scraping
376 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
377 ## Value is evalued as a template
378 ##
379 relabelings: []
380
381 ## MetricRelabelConfigs to apply to samples before ingestion
382 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
383 ## Value is evalued as a template
384 ##
385 metricRelabelings: []
386 # - sourceLabels:
387 # - "__name__"
388 # targetLabel: "__name__"
389 # action: replace
390 # regex: '(.*)'
391 # replacement: 'example_prefix_$1'
392
farida azmyd8937332021-03-09 12:20:42 +0200393#Pods Service Account
394serviceAccount:
395 nameOverride: aai-traversal
396 roles:
397 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200398
399#Log configuration
400log:
401 path: /var/log/onap
Fiete Ostkamp19c11722024-05-14 15:50:58 +0200402 level:
403 root: DEBUG
404 base: DEBUG # base package (org.onap.aai)
Maciej Wereskid523d122021-09-21 11:22:13 +0200405logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Kvbc2df7b2024-05-20 11:31:17 +0530406#################################################################
407# Secrets metaconfig
408#################################################################
409secrets:
410 - uid: aai-trav-kafka-user
411 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
412 type: genericKV
413 envs:
414 - name: sasl.jaas.config
415 value: '{{ .Values.config.someConfig }}'
416 policy: generate
417kafkaUser:
418 authenticationType: scram-sha-512
419 acls:
420 - name: AAI-EVENT
421 type: topic
Fiete Ostkamp1da99652024-05-28 08:51:51 +0200422 operations: [Read, Write]