[AAI] Remove AAF/TLS config from charts
[oom.git] / kubernetes / aai / components / aai-traversal / values.yaml
1 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
2 # Modifications Copyright (c) 2020 Nokia
3 # Modifications Copyright (c) 2021 Orange
4 # Modifications Copyright © 2023 Nordix Foundation
5 #
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.
21 global: # global defaults
22   nodePortPrefix: 302
23   aafEnabled: false
24
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
30   # 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:
63       active: production,dmaap
64
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:
74         client: no-auth
75       # 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:
88           default: v27
89         # Specifies which version the depth parameter is configurable
90         depth: v11
91         # List of all the supported versions of the API
92         list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27
93         # 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
106     # Specifies which clients should always default to realtime graph connection
107     realtime:
108       clients: SDNC,MSO,SO,robot-ete
109
110 # application image
111 image: onap/aai-traversal:1.11.2
112 pullPolicy: Always
113 restartPolicy: Always
114 flavor: small
115 flavorOverride: small
116 # the minimum number of seconds that a newly created Pod should be ready
117 minReadySeconds: 30
118 updateStrategy:
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
124
125 api_list:
126   - 11
127   - 12
128   - 13
129   - 14
130   - 15
131   - 16
132   - 17
133   - 18
134   - 19
135
136 aai_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
144 # application configuration
145 config:
146
147   # 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
161   # 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
195 persistence:
196   mountPath: /dockerdata-nfs
197   mountSubPath: aai/aai-traversal
198
199 # default number of instances
200 replicaCount: 1
201
202 nodeSelector: {}
203
204 affinity: {}
205
206 # probe configuration parameters
207 liveness:
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
214 readiness:
215   initialDelaySeconds: 10
216   periodSeconds: 10
217
218 service:
219   type: ClusterIP
220   portName: http
221   internalPort: 8446
222   portName2: tcp-5005
223   internalPort2: 5005
224   portName3: aai-traversal-8448
225   internalPort3: 8448
226   terminationGracePeriodSeconds: 120
227   sessionAffinity: None
228
229 ingress:
230   enabled: false
231
232 # To make logback capping values configurable
233 logback:
234   logToFileEnabled: true
235   maxHistory: 7
236   totalSizeCap: 6GB
237   queueSize: 1000
238
239 accessLogback:
240   logToFileEnabled: true
241   maxHistory: 7
242   totalSizeCap: 6GB
243
244 # Configure resource requests and limits
245 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
246 resources:
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: {}
262
263 metrics:
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
315 #Pods Service Account
316 serviceAccount:
317   nameOverride: aai-traversal
318   roles:
319     - read
320
321 #Log configuration
322 log:
323   path: /var/log/onap
324 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'