blob: 036a3c96f2c71f7d5fc8d63b0708bbd524aee88d [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
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010025 cassandra:
26 #Service Name of the cassandra cluster to connect to.
27 #Override it to aai-cassandra if localCluster is enabled.
28 serviceName: cassandra
Fiete Ostkamp464b6502024-08-06 15:00:30 +020029 # Cassandra datacenter name
30 localDataCenter: dc1
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 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.aaiTravKafkaUser }}'
111 someConfig: random
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100112
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100113# application image
Fiete Ostkamp464b6502024-08-06 15:00:30 +0200114image: onap/aai-traversal:1.14.6
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100115pullPolicy: Always
116restartPolicy: Always
117flavor: small
118flavorOverride: small
M.Hosnidokht15fea932021-08-25 09:08:40 -0400119# the minimum number of seconds that a newly created Pod should be ready
120minReadySeconds: 30
121updateStrategy:
122 type: RollingUpdate
123 # The number of pods that can be unavailable during the update process
124 maxUnavailable: 0
125 # The number of pods that can be created above the desired amount of pods during an update
126 maxSurge: 1
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100127
128api_list:
129 - 11
130 - 12
131 - 13
132 - 14
133 - 15
134 - 16
135 - 17
136 - 18
137 - 19
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200138 - 20
139 - 21
140 - 22
141 - 23
142 - 24
143 - 25
144 - 26
145 - 27
146 - 28
147 - 29
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100148
149aai_enpoints:
150 - name: aai-generic-query
151 url: search/generic-query
152 - name: aai-nodes-query
153 url: search/nodes-query
154 - name: aai-nquery
155 url: query
156
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100157# application configuration
158config:
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200159
Sam Huang56a6dd42021-03-26 13:27:17 -0600160 # configure keycloak according to your environment.
161 # don't forget to add keycloak in active profiles above (global.config.profiles)
162 keycloak:
163 host: keycloak.your.domain
164 port: 8180
165 # Specifies a set of users, credentials, roles, and groups
166 realm: aai-traversal
167 # Used by any client application for enabling fine-grained authorization for their protected resources
168 resource: aai-traversal-app
169 # If set to true, additional criteria will be added into traversal query to returns all the vertices that match
170 # the data-owner property with the given role to the user in keycloak
171 multiTenancy:
172 enabled: true
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100173 janusgraph:
174 caching:
175 # enable when running read-heavy workloads
176 # modifications to graph done by this service/janusgraph instance will immediately invalidate the cache
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200177 # modifications to graph done by other services (traversal) will only be visible
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100178 # after time specified in db-cache-time
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200179 enabled: true
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100180 # Documentation: https://docs.janusgraph.org/operations/cache/#database-level-caching
181 dbCacheTime: 180000 # in milliseconds
182 dbCacheSize: 0.1 # percentage (expressed as a decimal between 0 and 1) of the total heap space available to the JVM running
183 dbCacheCleanWait: 20 # in milliseconds
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200184 # temporarily enable this to update the graph storage version
185 # see: https://docs.janusgraph.org/changelog/#upgrade-instructions_9
186 allowUpgrade: true
Sam Huang56a6dd42021-03-26 13:27:17 -0600187
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100188 # Specifies timeout information such as application specific and limits
189 timeout:
190 # If set to true application will timeout for queries taking longer than limit
191 enabled: true
192 # Specifies which apps (X-FromAppId) header should get overridden and (-1) no timeout
193 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAI-FILEGEN-GFPIP,-1
194 # Specifies how long should it wait before timing out the REST request
195 limit: 180000
196
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200197 # environment variables added to the launch of the image in deployment
198 env:
199 MIN_HEAP_SIZE: "512m"
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200200 MAX_HEAP_SIZE: "2g"
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200201 MAX_METASPACE_SIZE: "512m"
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200202 # POST_JVM_ARGS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
Andreas Geissler2ac422a2023-10-25 14:19:19 +0200203
Fiete Ostkamp21d48642024-01-16 08:33:59 +0100204 # adds jvm args for remote debugging the application
205 debug:
206 enabled: false
207 args: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
208
209 # adds jvm args for remote profiling the application
210 profiling:
211 enabled: false
212 args:
213 - "-Dcom.sun.management.jmxremote"
214 - "-Dcom.sun.management.jmxremote.ssl=false"
215 - "-Dcom.sun.management.jmxremote.authenticate=false"
216 - "-Dcom.sun.management.jmxremote.local.only=false"
217 - "-Dcom.sun.management.jmxremote.port=9999"
218 - "-Dcom.sun.management.jmxremote.rmi.port=9999"
219 - "-Djava.rmi.server.hostname=127.0.0.1"
220
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100221 # Disables the updateQueryData script to run as part of traversal
222 disableUpdateQuery: true
223
224 # Override of the DSL Timeout Limit
225 dslOverride: 'ZV4V7E3N77SKIB6MR9MHQ6M4P6Q99Z7M76RBODA'
226
227 dsl:
228 # Dsl timeout configuration
229 timeout:
230 # Whether or not the dsl is enabled
231 enabled: true
232 # Default time limit of the DSL query
233 limit: 150000
234 # App Specific Timeout Limit for each of the X-FromAppId
235 appspecific:
236 - JUNITTESTAPP1,1
237 - JUNITTESTAPP2,-1
238 - AAI-TOOLS,-1
239 - DCAE-CCS,1200000
240 - DCAES,1200000
241 - VPESAT,-1
242 - AAI-CACHER,-1
243 - VidAaiController,300000
244 - AAI-UI,180000
245
246persistence:
247 mountPath: /dockerdata-nfs
248 mountSubPath: aai/aai-traversal
249
250# default number of instances
251replicaCount: 1
252
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200253# number of ReplicaSets that should be retained for the Deployment
254revisionHistoryLimit: 2
255
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100256nodeSelector: {}
257
258affinity: {}
259
260# probe configuration parameters
261liveness:
262 initialDelaySeconds: 60
263 periodSeconds: 60
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200264 enabled: true
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100265
266readiness:
267 initialDelaySeconds: 10
268 periodSeconds: 10
269
270service:
271 type: ClusterIP
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200272 traversalPortName: http
273 traversalPort: 8446
274 debugPortName: tcp-5005
275 debugPort: 5005
276 metricsPortName: metrics
277 metricsPort: 8448
278 profilingPortName: jmx-9999
279 profilingPort: 9999
Fiete Ostkamp464b6502024-08-06 15:00:30 +0200280 terminationGracePeriodSeconds: 30
leila46fb5802022-11-15 11:33:21 -0500281 sessionAffinity: None
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100282
283ingress:
284 enabled: false
285
AndrewLamb0e7c7fe2023-05-17 14:13:54 +0100286serviceMesh:
287 authorizationPolicy:
288 authorizedPrincipals:
289 - serviceAccount: aai-read
290 - serviceAccount: consul-read
291
leilab3bfd4d2022-11-10 14:27:16 -0500292# To make logback capping values configurable
293logback:
Fiete Ostkamp49a40b22023-11-14 10:35:03 +0100294 logToFileEnabled: false
leilab3bfd4d2022-11-10 14:27:16 -0500295 maxHistory: 7
296 totalSizeCap: 6GB
297 queueSize: 1000
298
299accessLogback:
Fiete Ostkamp49a40b22023-11-14 10:35:03 +0100300 logToFileEnabled: false
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200301 livenessAccessLogEnabled: false # false: do not log kubernetes liveness probes
leilab3bfd4d2022-11-10 14:27:16 -0500302 maxHistory: 7
303 totalSizeCap: 6GB
304
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100305# Configure resource requests and limits
306# ref: http://kubernetes.io/docs/user-guide/compute-resources/
307resources:
308 small:
309 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100310 cpu: "2"
311 memory: "4Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100312 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100313 cpu: "1"
314 memory: "3Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100315 large:
316 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100317 cpu: "4"
318 memory: "8Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100319 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100320 cpu: "2"
321 memory: "4Gi"
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100322 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200323
Fiete Ostkamp60a0ed22024-06-16 10:07:47 +0200324tracing:
325 collector:
326 baseUrl: http://jaeger-collector.istio-system:9411
327 sampling:
328 probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
329 ignorePatterns:
330 - /aai/util.*
331
Fiete Ostkamp40cbf9b2024-01-08 16:04:02 +0100332endpoints:
333 enabled: true
334 health:
335 enabled: true
336 info:
337 enabled: true
338
leila46fb5802022-11-15 11:33:21 -0500339metrics:
340 serviceMonitor:
341 enabled: false
342 targetPort: 8448
Fiete Ostkamp63f8bfd2024-01-10 16:11:43 +0100343 path: /actuator/prometheus
leila46fb5802022-11-15 11:33:21 -0500344 basicAuth:
345 enabled: false
346 externalSecretName: mysecretname
347 externalSecretUserKey: login
348 externalSecretPasswordKey: password
349
350 ## Namespace in which Prometheus is running
351 ##
352 # namespace: monitoring
353
354 ## Interval at which metrics should be scraped.
355 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
356 ##
357 #interval: 30s
358
359 ## Timeout after which the scrape is ended
360 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
361 ##
362 # scrapeTimeout: 10s
363
364 ## ServiceMonitor selector labels
365 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
366 ##
367 selector:
368 app: '{{ include "common.name" . }}'
369 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
370 release: '{{ include "common.release" . }}'
371 heritage: '{{ .Release.Service }}'
372
373 ## RelabelConfigs to apply to samples before scraping
374 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
375 ## Value is evalued as a template
376 ##
377 relabelings: []
378
379 ## MetricRelabelConfigs to apply to samples before ingestion
380 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
381 ## Value is evalued as a template
382 ##
383 metricRelabelings: []
384 # - sourceLabels:
385 # - "__name__"
386 # targetLabel: "__name__"
387 # action: replace
388 # regex: '(.*)'
389 # replacement: 'example_prefix_$1'
390
farida azmyd8937332021-03-09 12:20:42 +0200391#Pods Service Account
392serviceAccount:
393 nameOverride: aai-traversal
394 roles:
395 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200396
397#Log configuration
398log:
399 path: /var/log/onap
Fiete Ostkamp19c11722024-05-14 15:50:58 +0200400 level:
401 root: DEBUG
402 base: DEBUG # base package (org.onap.aai)
Maciej Wereskid523d122021-09-21 11:22:13 +0200403logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Kvbc2df7b2024-05-20 11:31:17 +0530404#################################################################
405# Secrets metaconfig
406#################################################################
407secrets:
408 - uid: aai-trav-kafka-user
409 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
410 type: genericKV
411 envs:
412 - name: sasl.jaas.config
413 value: '{{ .Values.config.someConfig }}'
414 policy: generate
415kafkaUser:
416 authenticationType: scram-sha-512
417 acls:
418 - name: AAI-EVENT
419 type: topic
Fiete Ostkamp1da99652024-05-28 08:51:51 +0200420 operations: [Read, Write]