[AAI] Remove AAF/TLS config from charts
[oom.git] / kubernetes / aai / components / aai-resources / values.yaml
1 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
2 # Copyright (c) 2020 Nokia, Orange
3 # Modifications Copyright (c) 2021 Orange
4 # Modifications Copyright © 2023 Nordix Foundation
5 #
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
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
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.
17
18 # Default values for resources.
19 # This is a YAML-formatted file.
20 # Declare variables to be passed into your templates.
21 global: # global defaults
22   nodePortPrefix: 302
23   cassandra:
24     #Service Name of the cassandra cluster to connect to.
25     #Override it to aai-cassandra if localCluster is enabled.
26     serviceName: cassandra
27
28   # Specifies a list of jobs to be run
29   jobs:
30     # When enabled, it will create the schema based on oxm and edge rules
31     createSchema:
32       enabled: true
33     #migration using helm hooks
34     migration:
35       enabled: false
36
37   aafEnabled: false
38
39   config:
40     # Specifies that the cluster connected to a dynamic
41     # cluster being spinned up by kubernetes deployment
42     cluster:
43       cassandra:
44         dynamic: true
45
46     # Specifies if the basic authorization is enabled
47     basic:
48       auth:
49         enabled: true
50         username: AAI
51         passwd: AAI
52
53     # Active spring profiles for the resources microservice
54     profiles:
55       active: production,dmaap
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       service:
66         client: no-auth
67       # Specifies which translator to use if it has schema-service, then it will 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,MSO,SO,robot-ete
101
102 api_list:
103   - 11
104   - 12
105   - 13
106   - 14
107   - 15
108   - 16
109   - 17
110   - 18
111   - 19
112
113 aai_enpoints:
114   - name: aai-cloudInfrastructure
115     url: cloud-infrastructure
116   - name: aai-business
117     url: business
118   - name: aai-actions
119     url: actions
120   - name: aai-service-design-and-creation
121     url: service-design-and-creation
122   - name: aai-network
123     url: network
124   - name: aai-externalSystem
125     url: external-system
126
127 # application image
128 image: onap/aai-resources:1.11.0
129 pullPolicy: Always
130 restartPolicy: Always
131 flavor: small
132 flavorOverride: small
133 # default number of instances
134 replicaCount: 1
135 # the minimum number of seconds that a newly created Pod should be ready
136 minReadySeconds: 30
137 updateStrategy:
138   type: RollingUpdate
139   # The number of pods that can be unavailable during the update process
140   maxUnavailable: 0
141   # The number of pods that can be created above the desired amount of pods during an update
142   maxSurge: 1
143
144 # Configuration for the resources deployment
145 config:
146   # configure keycloak according to your environment.
147   # don't forget to add keycloak in active profiles above (global.config.profiles)
148   keycloak:
149     host: keycloak.your.domain
150     port: 8180
151     # Specifies a set of users, credentials, roles, and groups
152     realm: aai-resources
153     # Used by any client application for enabling fine-grained authorization for their protected resources
154     resource: aai-resources-app
155     # If set to true, additional criteria will be added that match the data-owner property with the given role
156     # to the user in keycloak
157     multiTenancy:
158       enabled: true
159
160   # Specifies crud related operation timeouts and overrides
161   crud:
162     timeout:
163       # Specifies if the timeout for REST GET calls should be enabled
164       enabled: true
165       # Specifies the timeout values for application specific
166       # Its a pipe seperated list where each element before comma represents
167       # the X-FromAppId and the comma after specifies the timeout limit in ms
168       # If the timeout limit is -1 then it means for these apps no timeout
169       appspecific: JUNITTESTAPP1,1|JUNITTESTAPP2,-1|DCAE-CCS,-1|DCAES,-1|AAIRctFeed,-1|NewvceCreator,-1|IANewvceCreator,-1|AAI-CSIOVALS,-1
170       # Specifies what is the maximum timeout limit in milliseconds
171       limit: 100000
172
173   # Specifies configuration for bulk apis
174   bulk:
175     # Specifies for a bulk payload how many transactions in total allowed
176     limit: 30
177     # Specifies if the bulk can be override and if it can the value
178     override: false
179
180 nodeSelector: {}
181
182 affinity: {}
183
184 # probe configuration parameters
185 liveness:
186   initialDelaySeconds: 60
187   periodSeconds: 60
188   # necessary to disable liveness probe when setting breakpoints
189   # in debugger so K8s doesn't restart unresponsive container
190   enabled: false
191
192 readiness:
193   initialDelaySeconds: 60
194   periodSeconds: 10
195
196 service:
197   type: ClusterIP
198   portName: http
199   internalPort: 8447
200   portName2: tcp-5005
201   internalPort2: 5005
202   portName3: aai-resources-8448
203   internalPort3: 8448
204   terminationGracePeriodSeconds: 120
205   sessionAffinity: None
206
207 ingress:
208   enabled: false
209
210   # We usually recommend not to specify default resources and to leave this as a conscious
211   # choice for the user. This also increases chances charts run on environments with little
212   # resources, such as Minikube. If you do want to specify resources, uncomment the following
213   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
214   #
215   # Example:
216   # Configure resource requests and limits
217   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
218   # Minimum memory for development is 2 CPU cores and 4GB memory
219   # Minimum memory for production is 4 CPU cores and 8GB memory
220 #resources:
221 #  limits:
222 #    cpu: 2
223 #    memory: 4Gi
224 #  requests:
225 #    cpu: 2
226 #    memory: 4Gi
227 resources:
228   small:
229     limits:
230       cpu: 2
231       memory: 4Gi
232     requests:
233       cpu: 1
234       memory: 3Gi
235   large:
236     limits:
237       cpu: 4
238       memory: 8Gi
239     requests:
240       cpu: 2
241       memory: 4Gi
242   unlimited: {}
243
244 metrics:
245   serviceMonitor:
246     enabled: false
247     targetPort: 8448
248     path: /prometheus
249     basicAuth:
250       enabled: false
251       externalSecretName: mysecretname
252       externalSecretUserKey: login
253       externalSecretPasswordKey: password
254
255     ## Namespace in which Prometheus is running
256     ##
257     # namespace: monitoring
258
259     ## Interval at which metrics should be scraped.
260     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
261     ##
262     #interval: 30s
263
264     ## Timeout after which the scrape is ended
265     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
266     ##
267     # scrapeTimeout: 10s
268
269     ## ServiceMonitor selector labels
270     ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
271     ##
272     selector:
273       app: '{{ include "common.name" . }}'
274       chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
275       release: '{{ include "common.release" . }}'
276       heritage: '{{ .Release.Service }}'
277
278     ## RelabelConfigs to apply to samples before scraping
279     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
280     ## Value is evalued as a template
281     ##
282     relabelings: []
283
284     ## MetricRelabelConfigs to apply to samples before ingestion
285     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
286     ## Value is evalued as a template
287     ##
288     metricRelabelings: []
289     #  - sourceLabels:
290     #      - "__name__"
291     #    targetLabel: "__name__"
292     #    action: replace
293     #    regex: '(.*)'
294     #    replacement: 'example_prefix_$1'
295
296 #Pods Service Account
297 serviceAccount:
298   nameOverride: aai-resources
299   roles:
300     - read
301
302 #Log configuration
303 log:
304   path: /var/log/onap
305 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
306
307 # To make logback capping values configurable
308 logback:
309   logToFileEnabled: true
310   maxHistory: 7
311   totalSizeCap: 1GB
312   queueSize: 1000
313
314 accessLogback:
315   logToFileEnabled: true
316   maxHistory: 7
317   totalSizeCap: 1GB