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