blob: 613604fe9554ce89f8d6a9129066c4e4e96f07f0 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright (c) 2018 Amdocs, Bell Canada, AT&T
Sylvain Desbureaux5b651322020-12-07 15:34:15 +01002# Copyright (c) 2020 Nokia, Orange
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 resources.
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 cassandra:
24 #Service Name of the cassandra cluster to connect to.
25 #Override it to aai-cassandra if localCluster is enabled.
26 serviceName: cassandra
27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010028 # Specifies a list of jobs to be run
29 jobs:
30 # When enabled, it will create the schema based on oxm and edge rules
31 createSchema:
32 enabled: true
33 #migration using helm hooks
34 migration:
35 enabled: false
36
37 config:
38 # Specifies that the cluster connected to a dynamic
39 # cluster being spinned up by kubernetes deployment
40 cluster:
41 cassandra:
42 dynamic: true
43
44 # Specifies if the basic authorization is enabled
45 basic:
46 auth:
47 enabled: true
48 username: AAI
49 passwd: AAI
50
51 # Active spring profiles for the resources microservice
52 profiles:
efiacord12c1672023-03-23 12:10:50 +000053 active: production,dmaap
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010054
55 # Notification event specific properties
56 notification:
57 eventType: AAI-EVENT
58 domain: dev
59
60 # Schema specific properties that include supported versions of api
61 schema:
62 # Specifies if the connection should be one way ssl, two way ssl or no auth
63 service:
efiacord12c1672023-03-23 12:10:50 +000064 client: no-auth
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010065 # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
66 translator:
67 list: schema-service
68 source:
69 # Specifies which folder to take a look at
70 name: onap
71 uri:
72 # Base URI Path of the application
73 base:
74 path: /aai
75 version:
76 # Current version of the REST API
77 api:
wr148dcd3e6b72022-08-19 16:17:44 -040078 default: v27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010079 # Specifies which version the depth parameter is configurable
80 depth: v11
81 # List of all the supported versions of the API
wr148dcd3e6b72022-08-19 16:17:44 -040082 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 +010083 # Specifies from which version related link should appear
84 related:
85 link: v11
86 # Specifies from which version the app root change happened
87 app:
88 root: v11
89 # Specifies from which version the xml namespace changed
90 namespace:
91 change: v12
92 # Specifies from which version the edge label appeared in API
93 edge:
94 label: v12
95
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010096 # Specifies which clients should always default to realtime graph connection
97 realtime:
98 clients: SDNC,MSO,SO,robot-ete
Sylvain Desbureaux70070412020-11-09 21:58:48 +010099
Sylvain Desbureaux331f0042021-01-18 11:38:49 +0100100api_list:
101 - 11
102 - 12
103 - 13
104 - 14
105 - 15
106 - 16
107 - 17
108 - 18
109 - 19
110
111aai_enpoints:
112 - name: aai-cloudInfrastructure
113 url: cloud-infrastructure
114 - name: aai-business
115 url: business
116 - name: aai-actions
117 url: actions
118 - name: aai-service-design-and-creation
119 url: service-design-and-creation
120 - name: aai-network
121 url: network
122 - name: aai-externalSystem
123 url: external-system
124
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100125# application image
wr148d702d68a2022-10-20 18:26:54 -0400126image: onap/aai-resources:1.11.0
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100127pullPolicy: Always
128restartPolicy: Always
129flavor: small
130flavorOverride: small
131# default number of instances
132replicaCount: 1
M.Hosnidokht09523be2021-08-24 09:00:42 -0400133# the minimum number of seconds that a newly created Pod should be ready
134minReadySeconds: 30
135updateStrategy:
136 type: RollingUpdate
137 # The number of pods that can be unavailable during the update process
138 maxUnavailable: 0
139 # The number of pods that can be created above the desired amount of pods during an update
140 maxSurge: 1
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100141
142# Configuration for the resources deployment
143config:
roger yuana08006e2021-04-20 09:20:38 -0600144 # configure keycloak according to your environment.
145 # don't forget to add keycloak in active profiles above (global.config.profiles)
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100146 keycloak:
roger yuana08006e2021-04-20 09:20:38 -0600147 host: keycloak.your.domain
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100148 port: 8180
roger yuana08006e2021-04-20 09:20:38 -0600149 # Specifies a set of users, credentials, roles, and groups
150 realm: aai-resources
151 # Used by any client application for enabling fine-grained authorization for their protected resources
152 resource: aai-resources-app
153 # If set to true, additional criteria will be added that match the data-owner property with the given role
154 # to the user in keycloak
155 multiTenancy:
156 enabled: true
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100157
158 # Specifies crud related operation timeouts and overrides
159 crud:
160 timeout:
161 # Specifies if the timeout for REST GET calls should be enabled
162 enabled: true
163 # Specifies the timeout values for application specific
164 # Its a pipe seperated list where each element before comma represents
165 # the X-FromAppId and the comma after specifies the timeout limit in ms
166 # If the timeout limit is -1 then it means for these apps no timeout
167 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAIRctFeed,-1|NewvceCreator,-1|IANewvceCreator,-1|AAI-CSIOVALS,-1
168 # Specifies what is the maximum timeout limit in milliseconds
169 limit: 100000
170
171 # Specifies configuration for bulk apis
172 bulk:
173 # Specifies for a bulk payload how many transactions in total allowed
174 limit: 30
175 # Specifies if the bulk can be override and if it can the value
176 override: false
177
178nodeSelector: {}
179
180affinity: {}
181
182# probe configuration parameters
183liveness:
184 initialDelaySeconds: 60
185 periodSeconds: 60
186 # necessary to disable liveness probe when setting breakpoints
187 # in debugger so K8s doesn't restart unresponsive container
188 enabled: false
189
190readiness:
191 initialDelaySeconds: 60
192 periodSeconds: 10
193
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100194service:
195 type: ClusterIP
osk1146127fd7d82021-06-18 00:51:17 +0200196 portName: http
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100197 internalPort: 8447
osk1146127fd7d82021-06-18 00:51:17 +0200198 portName2: tcp-5005
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100199 internalPort2: 5005
Fiete Ostkamp7044e682023-04-19 13:25:18 +0000200 portName3: http-aai-resources
leila46fb5802022-11-15 11:33:21 -0500201 internalPort3: 8448
M.Hosnidokht09523be2021-08-24 09:00:42 -0400202 terminationGracePeriodSeconds: 120
leila46fb5802022-11-15 11:33:21 -0500203 sessionAffinity: None
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100204
205ingress:
206 enabled: false
207
AndrewLamb0e7c7fe2023-05-17 14:13:54 +0100208serviceMesh:
209 authorizationPolicy:
210 authorizedPrincipals:
211 - serviceAccount: aai-read
212 - serviceAccount: consul-read
213
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100214 # We usually recommend not to specify default resources and to leave this as a conscious
215 # choice for the user. This also increases chances charts run on environments with little
216 # resources, such as Minikube. If you do want to specify resources, uncomment the following
217 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
218 #
219 # Example:
220 # Configure resource requests and limits
221 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
222 # Minimum memory for development is 2 CPU cores and 4GB memory
223 # Minimum memory for production is 4 CPU cores and 8GB memory
224#resources:
225# limits:
226# cpu: 2
227# memory: 4Gi
228# requests:
229# cpu: 2
230# memory: 4Gi
231resources:
232 small:
233 limits:
234 cpu: 2
235 memory: 4Gi
236 requests:
237 cpu: 1
238 memory: 3Gi
239 large:
240 limits:
241 cpu: 4
242 memory: 8Gi
243 requests:
244 cpu: 2
245 memory: 4Gi
246 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200247
leila46fb5802022-11-15 11:33:21 -0500248metrics:
249 serviceMonitor:
250 enabled: false
251 targetPort: 8448
252 path: /prometheus
253 basicAuth:
254 enabled: false
255 externalSecretName: mysecretname
256 externalSecretUserKey: login
257 externalSecretPasswordKey: password
258
259 ## Namespace in which Prometheus is running
260 ##
261 # namespace: monitoring
262
263 ## Interval at which metrics should be scraped.
264 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
265 ##
266 #interval: 30s
267
268 ## Timeout after which the scrape is ended
269 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
270 ##
271 # scrapeTimeout: 10s
272
273 ## ServiceMonitor selector labels
274 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
275 ##
276 selector:
277 app: '{{ include "common.name" . }}'
278 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
279 release: '{{ include "common.release" . }}'
280 heritage: '{{ .Release.Service }}'
281
282 ## RelabelConfigs to apply to samples before scraping
283 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
284 ## Value is evalued as a template
285 ##
286 relabelings: []
287
288 ## MetricRelabelConfigs to apply to samples before ingestion
289 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
290 ## Value is evalued as a template
291 ##
292 metricRelabelings: []
293 # - sourceLabels:
294 # - "__name__"
295 # targetLabel: "__name__"
296 # action: replace
297 # regex: '(.*)'
298 # replacement: 'example_prefix_$1'
299
farida azmyd8937332021-03-09 12:20:42 +0200300#Pods Service Account
301serviceAccount:
302 nameOverride: aai-resources
303 roles:
304 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200305
306#Log configuration
307log:
308 path: /var/log/onap
309logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Rommel Pawarc03db782022-09-21 16:16:12 -0700310
311# To make logback capping values configurable
312logback:
313 logToFileEnabled: true
314 maxHistory: 7
315 totalSizeCap: 1GB
316 queueSize: 1000
317
318accessLogback:
319 logToFileEnabled: true
320 maxHistory: 7
321 totalSizeCap: 1GB