Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / aai / components / aai-graphadmin / values.yaml
1 #
2 # ============LICENSE_START=======================================================
3 # org.onap.aai
4 # ================================================================================
5 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6 # Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.
7 # Copyright (c) 2020-2021 Orange Intellectual Property. All rights reserved.
8 # Modifications Copyright © 2023 Nordix Foundation
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 #    http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END=========================================================
22
23 # Default values for resources.
24 # This is a YAML-formatted file.
25 # Declare variables to be passed into your templates.
26 global: # global defaults
27   nodePortPrefix: 302
28   cassandra:
29     #This will instantiate AAI cassandra cluster, default:shared cassandra.
30     localCluster: false
31     # flag to enable the DB creation via k8ssandra-operator
32     useOperator: true
33   initContainers:
34     enabled: true
35   jobs:
36     # When enabled, it will create the schema based on oxm and edge rules
37     createSchema:
38       enabled: true
39     #migration using helm hooks
40     migration:
41       enabled: false
42   config:
43
44     # Specifies that the cluster connected to a dynamic
45     # cluster being spinned up by kubernetes deployment
46     cluster:
47       cassandra:
48         dynamic: true
49
50     # Specifies if the basic authorization is enabled
51     basic:
52       auth:
53         enabled: true
54         username: AAI
55         passwd: AAI
56
57     # Notification event specific properties
58     notification:
59       eventType: AAI-EVENT
60       domain: dev
61
62     # Schema specific properties that include supported versions of api
63     schema:
64       # Specifies if the connection should be one way ssl, two way ssl or no auth
65       # will be set to no-auth if tls is disabled
66       service:
67         client: no-auth
68       # Specifies which translator to use if it has schema-service, then it will
69       # make a rest request to schema service
70       translator:
71         list: schema-service
72       source:
73         # Specifies which folder to take a look at
74         name: onap
75       uri:
76         # Base URI Path of the application
77         base:
78           path: /aai
79       version:
80         # Current version of the REST API
81         api:
82           default: v28
83         # Specifies which version the depth parameter is configurable
84         depth: v11
85         # List of all the supported versions of the API
86         list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28
87         # Specifies from which version related link should appear
88         related:
89           link: v11
90         # Specifies from which version the app root change happened
91         app:
92           root: v11
93         # Specifies from which version the xml namespace changed
94         namespace:
95           change: v12
96         # Specifies from which version the edge label appeared in API
97         edge:
98           label: v12
99
100     # Specifies which clients should always default to realtime graph connection
101     realtime:
102       clients: SDNC,-1|MSO,-1|SO,-1|robot-ete,-1
103
104 # application image
105 image: onap/aai-graphadmin:1.12.3
106 pullPolicy: Always
107 restartPolicy: Always
108 flavor: small
109 flavorOverride: small
110 # default number of instances
111 replicaCount: 1
112 # the minimum number of seconds that a newly created Pod should be ready
113 minReadySeconds: 30
114 updateStrategy:
115   type: RollingUpdate
116   # The number of pods that can be unavailable during the update process
117   maxUnavailable: 0
118   # The number of pods that can be created above the desired amount of pods during an update
119   maxSurge: 1
120
121 # Configuration for the graphadmin deployment
122 config:
123
124   # Specify the profiles for the graphadmin microservice
125   profiles:
126
127     active: dmaap
128
129   # Specifies the timeout limit for the REST API requests
130   timeout:
131     enabled: true
132     limit: 180000
133
134   # Default maximum records to fix for the data grooming and dupeTool
135   maxFix:
136     dataGrooming: 150
137     dupeTool: 25
138
139   # Default number of sleep minutes for dataGrooming and dupeTool
140   sleepMinutes:
141     dataGrooming: 7
142     dupeTool: 7
143
144   # Cron specific attributes to be triggered for the graphadmin spring cron tasks
145   cron:
146     # Specifies that the data grooming tool which runs duplicates should be enabled
147     dataGrooming:
148       enabled: true
149     # Specifies that the data snapshot which takes a graphson snapshot should be enabled
150     dataSnapshot:
151       enabled: true
152       params: JUST_TAKE_SNAPSHOT
153
154     # Data cleanup which zips snapshots older than x days and deletes older than y days
155     dataCleanup:
156
157       dataGrooming:
158         enabled: true
159         # Zips up the dataGrooming files older than 5 days
160         ageZip: 5
161         # Deletes the dataGrooming files older than 30 days
162         ageDelete: 30
163
164       dataSnapshot:
165         enabled: true
166         # Zips up the dataSnapshot graphson files older than 5 days
167         ageZip: 5
168         # Deletes the dataSnapshot graphson files older than 30 days
169         ageDelete: 30
170   # Concurrency lock control flag
171   aai:
172     lock:
173       uri:
174         enabled: false
175
176
177 nodeSelector: {}
178
179 affinity: {}
180
181 # probe configuration parameters
182 liveness:
183   initialDelaySeconds: 60
184   periodSeconds: 60
185   # necessary to disable liveness probe when setting breakpoints
186   # in debugger so K8s doesn't restart unresponsive container
187   enabled: false
188
189 readiness:
190   initialDelaySeconds: 60
191   periodSeconds: 10
192
193 service:
194   type: ClusterIP
195   # REST API port for the graphadmin microservice
196   portName: http
197   internalPort: 8449
198   portName2: tcp-5005
199   internalPort2: 5005
200   portName3: http-graphadmin
201   internalPort3: 8448
202   terminationGracePeriodSeconds: 120
203
204 ingress:
205   enabled: false
206
207 # No inbound communications.
208 serviceMesh:
209   authorizationPolicy:
210     authorizedPrincipals: []
211
212 persistence:
213   enabled: true
214   ## A manually managed Persistent Volume and Claim
215   ## Requires persistence.enabled: true
216   ## If defined, PVC must be created manually before volume will be bound
217   # existingClaim:
218   volumeReclaimPolicy: Retain
219   ## database data Persistent Volume Storage Class
220   ## If defined, storageClassName: <storageClass>
221   ## If set to "-", storageClassName: "", which disables dynamic provisioning
222   ## If undefined (the default) or set to null, no storageClassName spec is
223   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
224   ##   GKE, AWS & OpenStack)
225   ##
226   # storageClass: "-"
227   accessMode: ReadWriteMany
228   size: 2Gi
229
230   mountPath: /dockerdata-nfs
231   mountSubPath: aai/aai-graphadmin
232   mountSubPath1: aai/migration
233
234 # To make logback capping values configurable
235 logback:
236   logToFileEnabled: false
237   maxHistory: 7
238   totalSizeCap: 6GB
239   queueSize: 1000
240
241 accessLogback:
242   logToFileEnabled: false
243   maxHistory: 7
244   totalSizeCap: 6GB
245
246 resources:
247   small:
248     limits:
249       cpu: "1"
250       memory: "4Gi"
251     requests:
252       cpu: "0.5"
253       memory: "1.6Gi"
254   large:
255     limits:
256       cpu: "2"
257       memory: "8Gi"
258     requests:
259       cpu: "1"
260       memory: "3.2Gi"
261   unlimited: {}
262
263 metrics:
264   serviceMonitor:
265     enabled: false
266     targetPort: 8448
267     path: /actuator/prometheus
268     basicAuth:
269       enabled: false
270
271     selector:
272       app: '{{ include "common.name" . }}'
273       chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
274       release: '{{ include "common.release" . }}'
275       heritage: '{{ .Release.Service }}'
276
277     relabelings: []
278
279     metricRelabelings: []
280
281 # Not fully used for now
282 securityContext:
283   user_id: 1000
284   group_id: 1000
285
286 #Pods Service Account
287 serviceAccount:
288   nameOverride: aai-graphadmin
289   roles:
290     - read
291 #Log configuration
292 log:
293   path: /var/log/onap
294 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'