51051746fb9291f983720a6122a38ad465a27d2a
[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   initContainers:
32     enabled: true
33   jobs:
34     # When enabled, it will create the schema based on oxm and edge rules
35     createSchema:
36       enabled: true
37     #migration using helm hooks
38     migration:
39       enabled: false
40   config:
41
42     # Specifies that the cluster connected to a dynamic
43     # cluster being spinned up by kubernetes deployment
44     cluster:
45       cassandra:
46         dynamic: true
47
48     # Specifies if the basic authorization is enabled
49     basic:
50       auth:
51         enabled: true
52         username: AAI
53         passwd: AAI
54
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       # will be set to no-auth if tls is disabled
64       service:
65         client: no-auth
66       # Specifies which translator to use if it has schema-service, then it will
67       # make a rest request to schema service
68       translator:
69         list: schema-service
70       source:
71         # Specifies which folder to take a look at
72         name: onap
73       uri:
74         # Base URI Path of the application
75         base:
76           path: /aai
77       version:
78         # Current version of the REST API
79         api:
80           default: v27
81         # Specifies which version the depth parameter is configurable
82         depth: v11
83         # List of all the supported versions of the API
84         list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27
85         # Specifies from which version related link should appear
86         related:
87           link: v11
88         # Specifies from which version the app root change happened
89         app:
90           root: v11
91         # Specifies from which version the xml namespace changed
92         namespace:
93           change: v12
94         # Specifies from which version the edge label appeared in API
95         edge:
96           label: v12
97
98     # Specifies which clients should always default to realtime graph connection
99     realtime:
100       clients: SDNC,-1|MSO,-1|SO,-1|robot-ete,-1
101
102 # application image
103 image: onap/aai-graphadmin:1.11.2
104 pullPolicy: Always
105 restartPolicy: Always
106 flavor: small
107 flavorOverride: small
108 # default number of instances
109 replicaCount: 1
110 # the minimum number of seconds that a newly created Pod should be ready
111 minReadySeconds: 30
112 updateStrategy:
113   type: RollingUpdate
114   # The number of pods that can be unavailable during the update process
115   maxUnavailable: 0
116   # The number of pods that can be created above the desired amount of pods during an update
117   maxSurge: 1
118
119 # Configuration for the graphadmin deployment
120 config:
121
122   # Specify the profiles for the graphadmin microservice
123   profiles:
124
125     active: dmaap
126
127   # Specifies the timeout limit for the REST API requests
128   timeout:
129     enabled: true
130     limit: 180000
131
132   # Default maximum records to fix for the data grooming and dupeTool
133   maxFix:
134     dataGrooming: 150
135     dupeTool: 25
136
137   # Default number of sleep minutes for dataGrooming and dupeTool
138   sleepMinutes:
139     dataGrooming: 7
140     dupeTool: 7
141
142   # Cron specific attributes to be triggered for the graphadmin spring cron tasks
143   cron:
144     # Specifies that the data grooming tool which runs duplicates should be enabled
145     dataGrooming:
146       enabled: true
147     # Specifies that the data snapshot which takes a graphson snapshot should be enabled
148     dataSnapshot:
149       enabled: true
150       params: JUST_TAKE_SNAPSHOT
151
152     # Data cleanup which zips snapshots older than x days and deletes older than y days
153     dataCleanup:
154
155       dataGrooming:
156         enabled: true
157         # Zips up the dataGrooming files older than 5 days
158         ageZip: 5
159         # Deletes the dataGrooming files older than 30 days
160         ageDelete: 30
161
162       dataSnapshot:
163         enabled: true
164         # Zips up the dataSnapshot graphson files older than 5 days
165         ageZip: 5
166         # Deletes the dataSnapshot graphson files older than 30 days
167         ageDelete: 30
168   # Concurrency lock control flag
169   aai:
170     lock:
171       uri:
172         enabled: false
173
174
175 nodeSelector: {}
176
177 affinity: {}
178
179 # probe configuration parameters
180 liveness:
181   initialDelaySeconds: 60
182   periodSeconds: 60
183   # necessary to disable liveness probe when setting breakpoints
184   # in debugger so K8s doesn't restart unresponsive container
185   enabled: false
186
187 readiness:
188   initialDelaySeconds: 60
189   periodSeconds: 10
190
191 service:
192   type: ClusterIP
193   # REST API port for the graphadmin microservice
194   portName: http
195   internalPort: 8449
196   portName2: tcp-5005
197   internalPort2: 5005
198   portName3: http-graphadmin
199   internalPort3: 8448
200   terminationGracePeriodSeconds: 120
201
202 ingress:
203   enabled: false
204
205 # No inbound communications.
206 serviceMesh:
207   authorizationPolicy:
208     authorizedPrincipals: []
209
210 persistence:
211   enabled: true
212   ## A manually managed Persistent Volume and Claim
213   ## Requires persistence.enabled: true
214   ## If defined, PVC must be created manually before volume will be bound
215   # existingClaim:
216   volumeReclaimPolicy: Retain
217   ## database data Persistent Volume Storage Class
218   ## If defined, storageClassName: <storageClass>
219   ## If set to "-", storageClassName: "", which disables dynamic provisioning
220   ## If undefined (the default) or set to null, no storageClassName spec is
221   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
222   ##   GKE, AWS & OpenStack)
223   ##
224   # storageClass: "-"
225   accessMode: ReadWriteMany
226   size: 2Gi
227
228   mountPath: /dockerdata-nfs
229   mountSubPath: aai/aai-graphadmin
230   mountSubPath1: aai/migration
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 resources:
245   small:
246     limits:
247       cpu: 999
248       memory: 4Gi
249     requests:
250       cpu: 0.5
251       memory: 1.6Gi
252   large:
253     limits:
254       cpu: 999
255       memory: 8Gi
256     requests:
257       cpu: 1
258       memory: 3.2Gi
259   unlimited: {}
260
261 metrics:
262   serviceMonitor:
263     enabled: false
264     targetPort: 8448
265     path: /prometheus
266     basicAuth:
267       enabled: false
268
269     selector:
270       app: '{{ include "common.name" . }}'
271       chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
272       release: '{{ include "common.release" . }}'
273       heritage: '{{ .Release.Service }}'
274
275     relabelings: []
276
277     metricRelabelings: []
278
279 # Not fully used for now
280 securityContext:
281   user_id: 1000
282   group_id: 1000
283
284 #Pods Service Account
285 serviceAccount:
286   nameOverride: aai-graphadmin
287   roles:
288     - read
289 #Log configuration
290 log:
291   path: /var/log/onap
292 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'