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
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
25 #Service Name of the cassandra cluster to connect to.
26 #Override it to aai-cassandra if localCluster is enabled.
27 serviceName: cassandra
29 # Specifies a list of jobs to be run
31 # When enabled, it will create the schema based on oxm and edge rules
34 # When enabled, it will create the widget models via REST API to haproxy
37 #migration using helm hooks
41 # Common configuration for resources traversal and graphadmin
43 # User information for the admin user in container
47 # Specifies that the cluster connected to a dynamic
48 # cluster being spinned up by kubernetes deployment
53 # Specifies if the basic authorization is enabled
60 # Active spring profiles for the resources microservice
62 active: production,dmaap
64 # Notification event specific properties
69 # Schema specific properties that include supported versions of api
71 # Specifies if the connection should be one way ssl, two way ssl or no auth
74 # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
78 # Specifies which folder to take a look at
81 # Base URI Path of the application
85 # Current version of the REST API
88 # Specifies which version the depth parameter is configurable
90 # List of all the supported versions of the API
91 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28
92 # Specifies from which version related link should appear
95 # Specifies from which version the app root change happened
98 # Specifies from which version the xml namespace changed
101 # Specifies from which version the edge label appeared in API
105 # Specifies which clients should always default to realtime graph connection
107 clients: SDNC,MSO,SO,robot-ete
110 image: onap/aai-traversal:1.12.3
112 restartPolicy: Always
114 flavorOverride: small
115 # the minimum number of seconds that a newly created Pod should be ready
119 # The number of pods that can be unavailable during the update process
121 # The number of pods that can be created above the desired amount of pods during an update
136 - name: aai-generic-query
137 url: search/generic-query
138 - name: aai-nodes-query
139 url: search/nodes-query
143 # application configuration
145 # configure keycloak according to your environment.
146 # don't forget to add keycloak in active profiles above (global.config.profiles)
148 host: keycloak.your.domain
150 # Specifies a set of users, credentials, roles, and groups
152 # Used by any client application for enabling fine-grained authorization for their protected resources
153 resource: aai-traversal-app
154 # If set to true, additional criteria will be added into traversal query to returns all the vertices that match
155 # the data-owner property with the given role to the user in keycloak
160 # enable when running read-heavy workloads
161 # modifications to graph done by this service/janusgraph instance will immediately invalidate the cache
162 # modifications to graph done by other services (resources) will only be visible
163 # after time specified in db-cache-time
165 # Documentation: https://docs.janusgraph.org/operations/cache/#database-level-caching
166 dbCacheTime: 180000 # in milliseconds
167 dbCacheSize: 0.1 # percentage (expressed as a decimal between 0 and 1) of the total heap space available to the JVM running
168 dbCacheCleanWait: 20 # in milliseconds
171 # Specifies timeout information such as application specific and limits
173 # If set to true application will timeout for queries taking longer than limit
175 # Specifies which apps (X-FromAppId) header should get overridden and (-1) no timeout
176 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAI-FILEGEN-GFPIP,-1
177 # Specifies how long should it wait before timing out the REST request
180 # environment variables added to the launch of the image in deployment
182 MIN_HEAP_SIZE: "512m"
183 MAX_HEAP_SIZE: "1024m"
184 MAX_METASPACE_SIZE: "512m"
186 # adds jvm args for remote debugging the application
189 args: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
191 # adds jvm args for remote profiling the application
195 - "-Dcom.sun.management.jmxremote"
196 - "-Dcom.sun.management.jmxremote.ssl=false"
197 - "-Dcom.sun.management.jmxremote.authenticate=false"
198 - "-Dcom.sun.management.jmxremote.local.only=false"
199 - "-Dcom.sun.management.jmxremote.port=9999"
200 - "-Dcom.sun.management.jmxremote.rmi.port=9999"
201 - "-Djava.rmi.server.hostname=127.0.0.1"
203 # Disables the updateQueryData script to run as part of traversal
204 disableUpdateQuery: true
206 # Override of the DSL Timeout Limit
207 dslOverride: 'ZV4V7E3N77SKIB6MR9MHQ6M4P6Q99Z7M76RBODA'
210 # Dsl timeout configuration
212 # Whether or not the dsl is enabled
214 # Default time limit of the DSL query
216 # App Specific Timeout Limit for each of the X-FromAppId
225 - VidAaiController,300000
229 mountPath: /dockerdata-nfs
230 mountSubPath: aai/aai-traversal
232 # default number of instances
239 # probe configuration parameters
241 initialDelaySeconds: 60
243 # necessary to disable liveness probe when setting breakpoints
244 # in debugger so K8s doesn't restart unresponsive container
248 initialDelaySeconds: 10
257 portName3: http-traversal
259 terminationGracePeriodSeconds: 120
260 sessionAffinity: None
267 authorizedPrincipals:
268 - serviceAccount: aai-read
269 - serviceAccount: consul-read
271 # To make logback capping values configurable
273 logToFileEnabled: false
279 livenessAccessLogEnabled: false # false: do not log kubernetes liveness probes
280 logToFileEnabled: false
284 # Configure resource requests and limits
285 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
314 path: /actuator/prometheus
317 externalSecretName: mysecretname
318 externalSecretUserKey: login
319 externalSecretPasswordKey: password
321 ## Namespace in which Prometheus is running
323 # namespace: monitoring
325 ## Interval at which metrics should be scraped.
326 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
330 ## Timeout after which the scrape is ended
331 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
335 ## ServiceMonitor selector labels
336 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
339 app: '{{ include "common.name" . }}'
340 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
341 release: '{{ include "common.release" . }}'
342 heritage: '{{ .Release.Service }}'
344 ## RelabelConfigs to apply to samples before scraping
345 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
346 ## Value is evalued as a template
350 ## MetricRelabelConfigs to apply to samples before ingestion
351 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
352 ## Value is evalued as a template
354 metricRelabelings: []
357 # targetLabel: "__name__"
360 # replacement: 'example_prefix_$1'
362 #Pods Service Account
364 nameOverride: aai-traversal
371 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'