blob: fac033bd90cd44bf0b7d845549226b114978568d [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
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010023
24 cassandra:
25 #Service Name of the cassandra cluster to connect to.
26 #Override it to aai-cassandra if localCluster is enabled.
27 serviceName: cassandra
28
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010029 # Specifies a list of jobs to be run
30 jobs:
31 # When enabled, it will create the schema based on oxm and edge rules
32 createSchema:
33 enabled: true
34 # When enabled, it will create the widget models via REST API to haproxy
35 updateQueryData:
36 enabled: true
37 #migration using helm hooks
38 migration:
39 enabled: false
40
41 # Common configuration for resources traversal and graphadmin
42 config:
43 # User information for the admin user in container
44 userId: 1000
45 groupId: 1000
46
47 # Specifies that the cluster connected to a dynamic
48 # cluster being spinned up by kubernetes deployment
49 cluster:
50 cassandra:
51 dynamic: true
52
53 # Specifies if the basic authorization is enabled
54 basic:
55 auth:
56 enabled: true
57 username: AAI
58 passwd: AAI
59
60 # Active spring profiles for the resources microservice
61 profiles:
efiacord12c1672023-03-23 12:10:50 +000062 active: production,dmaap
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010063
64 # Notification event specific properties
65 notification:
66 eventType: AAI-EVENT
67 domain: dev
68
69 # Schema specific properties that include supported versions of api
70 schema:
71 # Specifies if the connection should be one way ssl, two way ssl or no auth
72 service:
efiacord12c1672023-03-23 12:10:50 +000073 client: no-auth
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010074 # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
75 translator:
76 list: schema-service
77 source:
78 # Specifies which folder to take a look at
79 name: onap
80 uri:
81 # Base URI Path of the application
82 base:
83 path: /aai
84 version:
85 # Current version of the REST API
86 api:
wr148dcd3e6b72022-08-19 16:17:44 -040087 default: v27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010088 # Specifies which version the depth parameter is configurable
89 depth: v11
90 # List of all the supported versions of the API
wr148dcd3e6b72022-08-19 16:17:44 -040091 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010092 # Specifies from which version related link should appear
93 related:
94 link: v11
95 # Specifies from which version the app root change happened
96 app:
97 root: v11
98 # Specifies from which version the xml namespace changed
99 namespace:
100 change: v12
101 # Specifies from which version the edge label appeared in API
102 edge:
103 label: v12
104
Sylvain Desbureaux5b651322020-12-07 15:34:15 +0100105 # Specifies which clients should always default to realtime graph connection
106 realtime:
107 clients: SDNC,MSO,SO,robot-ete
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100108
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100109# application image
leilacda9e142022-11-29 13:51:19 -0500110image: onap/aai-traversal:1.11.2
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100111pullPolicy: Always
112restartPolicy: Always
113flavor: small
114flavorOverride: small
M.Hosnidokht15fea932021-08-25 09:08:40 -0400115# the minimum number of seconds that a newly created Pod should be ready
116minReadySeconds: 30
117updateStrategy:
118 type: RollingUpdate
119 # The number of pods that can be unavailable during the update process
120 maxUnavailable: 0
121 # The number of pods that can be created above the desired amount of pods during an update
122 maxSurge: 1
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100123
124api_list:
125 - 11
126 - 12
127 - 13
128 - 14
129 - 15
130 - 16
131 - 17
132 - 18
133 - 19
134
135aai_enpoints:
136 - name: aai-generic-query
137 url: search/generic-query
138 - name: aai-nodes-query
139 url: search/nodes-query
140 - name: aai-nquery
141 url: query
142
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100143# application configuration
144config:
145
Sam Huang56a6dd42021-03-26 13:27:17 -0600146 # configure keycloak according to your environment.
147 # don't forget to add keycloak in active profiles above (global.config.profiles)
148 keycloak:
149 host: keycloak.your.domain
150 port: 8180
151 # Specifies a set of users, credentials, roles, and groups
152 realm: aai-traversal
153 # Used by any client application for enabling fine-grained authorization for their protected resources
154 resource: aai-traversal-app
155 # If set to true, additional criteria will be added into traversal query to returns all the vertices that match
156 # the data-owner property with the given role to the user in keycloak
157 multiTenancy:
158 enabled: true
159
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100160 # Specifies timeout information such as application specific and limits
161 timeout:
162 # If set to true application will timeout for queries taking longer than limit
163 enabled: true
164 # Specifies which apps (X-FromAppId) header should get overridden and (-1) no timeout
165 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAI-FILEGEN-GFPIP,-1
166 # Specifies how long should it wait before timing out the REST request
167 limit: 180000
168
169 # Disables the updateQueryData script to run as part of traversal
170 disableUpdateQuery: true
171
172 # Override of the DSL Timeout Limit
173 dslOverride: 'ZV4V7E3N77SKIB6MR9MHQ6M4P6Q99Z7M76RBODA'
174
175 dsl:
176 # Dsl timeout configuration
177 timeout:
178 # Whether or not the dsl is enabled
179 enabled: true
180 # Default time limit of the DSL query
181 limit: 150000
182 # App Specific Timeout Limit for each of the X-FromAppId
183 appspecific:
184 - JUNITTESTAPP1,1
185 - JUNITTESTAPP2,-1
186 - AAI-TOOLS,-1
187 - DCAE-CCS,1200000
188 - DCAES,1200000
189 - VPESAT,-1
190 - AAI-CACHER,-1
191 - VidAaiController,300000
192 - AAI-UI,180000
193
194persistence:
195 mountPath: /dockerdata-nfs
196 mountSubPath: aai/aai-traversal
197
198# default number of instances
199replicaCount: 1
200
201nodeSelector: {}
202
203affinity: {}
204
205# probe configuration parameters
206liveness:
207 initialDelaySeconds: 60
208 periodSeconds: 60
209 # necessary to disable liveness probe when setting breakpoints
210 # in debugger so K8s doesn't restart unresponsive container
211 enabled: false
212
213readiness:
214 initialDelaySeconds: 10
215 periodSeconds: 10
216
217service:
218 type: ClusterIP
osk1146127fd7d82021-06-18 00:51:17 +0200219 portName: http
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100220 internalPort: 8446
osk1146127fd7d82021-06-18 00:51:17 +0200221 portName2: tcp-5005
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100222 internalPort2: 5005
Fiete Ostkamp7044e682023-04-19 13:25:18 +0000223 portName3: http-aai-traversal
leila46fb5802022-11-15 11:33:21 -0500224 internalPort3: 8448
M.Hosnidokht15fea932021-08-25 09:08:40 -0400225 terminationGracePeriodSeconds: 120
leila46fb5802022-11-15 11:33:21 -0500226 sessionAffinity: None
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100227
228ingress:
229 enabled: false
230
AndrewLamb0e7c7fe2023-05-17 14:13:54 +0100231serviceMesh:
232 authorizationPolicy:
233 authorizedPrincipals:
234 - serviceAccount: aai-read
235 - serviceAccount: consul-read
236
leilab3bfd4d2022-11-10 14:27:16 -0500237# To make logback capping values configurable
238logback:
239 logToFileEnabled: true
240 maxHistory: 7
241 totalSizeCap: 6GB
242 queueSize: 1000
243
244accessLogback:
245 logToFileEnabled: true
246 maxHistory: 7
247 totalSizeCap: 6GB
248
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100249# Configure resource requests and limits
250# ref: http://kubernetes.io/docs/user-guide/compute-resources/
251resources:
252 small:
253 limits:
254 cpu: 2
255 memory: 4Gi
256 requests:
257 cpu: 1
258 memory: 3Gi
259 large:
260 limits:
261 cpu: 4
262 memory: 8Gi
263 requests:
264 cpu: 2
265 memory: 4Gi
266 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200267
leila46fb5802022-11-15 11:33:21 -0500268metrics:
269 serviceMonitor:
270 enabled: false
271 targetPort: 8448
272 path: /prometheus
273 basicAuth:
274 enabled: false
275 externalSecretName: mysecretname
276 externalSecretUserKey: login
277 externalSecretPasswordKey: password
278
279 ## Namespace in which Prometheus is running
280 ##
281 # namespace: monitoring
282
283 ## Interval at which metrics should be scraped.
284 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
285 ##
286 #interval: 30s
287
288 ## Timeout after which the scrape is ended
289 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
290 ##
291 # scrapeTimeout: 10s
292
293 ## ServiceMonitor selector labels
294 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
295 ##
296 selector:
297 app: '{{ include "common.name" . }}'
298 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
299 release: '{{ include "common.release" . }}'
300 heritage: '{{ .Release.Service }}'
301
302 ## RelabelConfigs to apply to samples before scraping
303 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
304 ## Value is evalued as a template
305 ##
306 relabelings: []
307
308 ## MetricRelabelConfigs to apply to samples before ingestion
309 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
310 ## Value is evalued as a template
311 ##
312 metricRelabelings: []
313 # - sourceLabels:
314 # - "__name__"
315 # targetLabel: "__name__"
316 # action: replace
317 # regex: '(.*)'
318 # replacement: 'example_prefix_$1'
319
farida azmyd8937332021-03-09 12:20:42 +0200320#Pods Service Account
321serviceAccount:
322 nameOverride: aai-traversal
323 roles:
324 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200325
326#Log configuration
327log:
328 path: /var/log/onap
329logConfigMapNamePrefix: '{{ include "common.fullname" . }}'