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
23 kafkaBootstrap: strimzi-kafka-bootstrap
24 aaiTravKafkaUser: aai-trav-kafka-user
26 #Service Name of the cassandra cluster to connect to.
27 #Override it to aai-cassandra if localCluster is enabled.
28 serviceName: cassandra
29 # Cassandra datacenter name
34 baseUrl: http://jaeger-collector.istio-config:9411
36 probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
38 # Specifies a list of jobs to be run
40 # When enabled, it will create the schema based on oxm and edge rules
43 # When enabled, it will create the widget models via REST API to haproxy
46 #migration using helm hooks
49 # Specifies if basic authorization is enabled
53 - username: aai@aai.onap.org
65 - username: ModelLoader
69 # Common configuration for resources traversal and graphadmin
71 # User information for the admin user in container
75 # Specifies that the cluster connected to a dynamic
76 # cluster being spinned up by kubernetes deployment
81 # Active spring profiles for the resources microservice
83 active: production,kafka
85 # Notification event specific properties
90 # Schema specific properties that include supported versions of api
92 # Specifies if the connection should be one way ssl, two way ssl or no auth
95 # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
99 # Specifies which folder to take a look at
102 # Base URI Path of the application
106 # Current version of the REST API
109 # Specifies which version the depth parameter is configurable
111 # List of all the supported versions of the API
112 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30
113 # Specifies from which version related link should appear
116 # Specifies from which version the app root change happened
119 # Specifies from which version the xml namespace changed
122 # Specifies from which version the edge label appeared in API
126 # Specifies which clients should always default to realtime graph connection
128 clients: SDNC,MSO,SO,robot-ete
129 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.aaiTravKafkaUser }}'
133 image: onap/aai-traversal:1.16.0
135 restartPolicy: Always
137 # the minimum number of seconds that a newly created Pod should be ready
141 # The number of pods that can be unavailable during the update process
143 # The number of pods that can be created above the desired amount of pods during an update
168 - name: aai-generic-query
169 url: search/generic-query
170 - name: aai-nodes-query
171 url: search/nodes-query
175 # application configuration
179 # enable when running read-heavy workloads
180 # modifications to graph done by this service/janusgraph instance will immediately invalidate the cache
181 # modifications to graph done by other services (traversal) will only be visible
182 # after time specified in db-cache-time
184 # Documentation: https://docs.janusgraph.org/operations/cache/#database-level-caching
185 dbCacheTime: 180000 # in milliseconds
186 dbCacheSize: 0.1 # percentage (expressed as a decimal between 0 and 1) of the total heap space available to the JVM running
187 dbCacheCleanWait: 20 # in milliseconds
188 # temporarily enable this to update the graph storage version
189 # see: https://docs.janusgraph.org/changelog/#upgrade-instructions_9
192 # Specifies timeout information such as application specific and limits
194 # If set to true application will timeout for queries taking longer than limit
196 # Specifies which apps (X-FromAppId) header should get overridden and (-1) no timeout
197 appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAI-FILEGEN-GFPIP,-1
198 # Specifies how long should it wait before timing out the REST request
201 # environment variables added to the launch of the image in deployment
203 MIN_HEAP_SIZE: "512m"
204 MAX_METASPACE_SIZE: "512m"
205 # POST_JVM_ARGS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
207 # adds jvm args for remote debugging the application
210 args: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
212 # adds jvm args for remote profiling the application
216 - "-Dcom.sun.management.jmxremote"
217 - "-Dcom.sun.management.jmxremote.ssl=false"
218 - "-Dcom.sun.management.jmxremote.authenticate=false"
219 - "-Dcom.sun.management.jmxremote.local.only=false"
220 - "-Dcom.sun.management.jmxremote.port=9999"
221 - "-Dcom.sun.management.jmxremote.rmi.port=9999"
222 - "-Djava.rmi.server.hostname=127.0.0.1"
224 # Disables the updateQueryData script to run as part of traversal
225 disableUpdateQuery: true
227 # Override of the DSL Timeout Limit
228 dslOverride: 'ZV4V7E3N77SKIB6MR9MHQ6M4P6Q99Z7M76RBODA'
231 # Dsl timeout configuration
233 # Whether or not the dsl is enabled
235 # Default time limit of the DSL query
237 # App Specific Timeout Limit for each of the X-FromAppId
246 - VidAaiController,300000
250 mountPath: /dockerdata-nfs
251 mountSubPath: aai/aai-traversal
253 # default number of instances
256 # number of ReplicaSets that should be retained for the Deployment
257 revisionHistoryLimit: 1
263 # probe configuration parameters
265 path: /actuator/health
266 initialDelaySeconds: 60
271 path: /actuator/health/readiness
272 initialDelaySeconds: 10
281 traversalPortName: http
283 debugPortName: tcp-5005
285 metricsPortName: metrics
287 profilingPortName: jmx-9999
289 terminationGracePeriodSeconds: 30
290 sessionAffinity: None
297 authorizedPrincipals:
298 - serviceAccount: aai-read
299 - serviceAccount: consul-read
301 # To make logback capping values configurable
303 logToFileEnabled: false
309 logToFileEnabled: false
310 livenessAccessLogEnabled: false # false: do not log kubernetes liveness probes
314 # Configure resource requests and limits
315 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
333 # define the heap size for the JVM
334 # according to the resource flavor
344 targetCPUUtilizationPercentage: 80
358 checksum/config: '{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}'
364 path: /actuator/prometheus
367 externalSecretName: mysecretname
368 externalSecretUserKey: login
369 externalSecretPasswordKey: password
371 ## Namespace in which Prometheus is running
373 # namespace: monitoring
375 ## Interval at which metrics should be scraped.
376 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
380 ## Timeout after which the scrape is ended
381 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
385 ## ServiceMonitor selector labels
386 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
389 app: '{{ include "common.name" . }}'
390 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
391 app.kubernetes.io/instance: '{{ include "common.release" . }}'
392 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
394 ## RelabelConfigs to apply to samples before scraping
395 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
396 ## Value is evalued as a template
400 ## MetricRelabelConfigs to apply to samples before ingestion
401 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
402 ## Value is evalued as a template
404 metricRelabelings: []
407 # targetLabel: "__name__"
410 # replacement: 'example_prefix_$1'
412 #Pods Service Account
414 nameOverride: aai-traversal
423 base: INFO # base package (org.onap.aai)
424 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
428 logmiscSizeLimit: 50Mi
438 - '{{ include "common.release" . }}-aai-graphadmin-migration'
439 wait_for_createSchema:
441 - '{{ include "common.release" . }}-aai-graphadmin-create-db-schema'
444 - '{{ .Values.global.cassandra.serviceName }}'
451 "helm.sh/hook": pre-upgrade,pre-rollback,post-install
452 "helm.sh/hook-weight": "2"
453 "helm.sh/hook-delete-policy": before-hook-creation
455 #################################################################
457 #################################################################
459 - uid: aai-trav-kafka-user
460 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
463 - name: sasl.jaas.config
464 value: '{{ .Values.config.someConfig }}'
467 authenticationType: scram-sha-512
471 operations: [Read, Write]