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