Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-slice-analysis-ms / values.yaml
1 # ============= LICENSE_START ================================================
2 # ============================================================================
3 # Copyright (C) 2021-2022 Wipro Limited.
4 # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
5 # Copyright (C) 2022 Huawei Canada Limited.
6 # Copyright (c) 2023 Deutsche Telekom AG. All rights reserved.
7 # ============================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #     http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============= LICENSE_END ==================================================
20
21 #################################################################
22 # Global Configuration Defaults.
23 #################################################################
24 global:
25   nodePortPrefix: 302
26   nodePortPrefixExt: 304
27   centralizedLoggingEnabled: true
28
29 #################################################################
30 # Filebeat Configuration Defaults.
31 #################################################################
32 filebeatConfig:
33   logstashServiceName: log-ls
34   logstashPort: 5044
35
36 #################################################################
37 # Secrets Configuration.
38 #################################################################
39 secrets:
40   - uid: &pgUserCredsSecretUid pg-user-creds
41     name: &pgUserCredsSecretName '{{ include "common.release" . }}-sliceanalysisms-pg-user-creds'
42     type: basicAuth
43     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sliceanalysisms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
44     login: '{{ .Values.postgres.config.pgUserName }}'
45     password: '{{ .Values.postgres.config.pgUserPassword }}'
46     passwordPolicy: generate
47
48 #################################################################
49 # Application Configuration Defaults.
50 #################################################################
51 # Application Image
52 repository: nexus3.onap.org:10001
53 image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.2.1
54 pullPolicy: IfNotPresent
55
56 #################################################################
57 # Policy Sync Container Image.
58 #################################################################
59 # optional Policy configuration properties
60 # if present, policy-sync side car will be deployed
61 # policy sync is used for provide runtime configuration for slicems
62 # policy id is originally set to "onap.dcae.slicems.config"
63
64 #dcaePolicySyncImage: onap/org.onap.dcaegen2.deployments.dcae-services-policy-sync:1.0.1
65 #pullPolicy: IfNotPresent
66 #policies:
67 #  duration:
68 #          10
69 #  policyID: |
70 #    '["onap.dcae.slicems.config"]'
71
72 # Log directory where logging sidecar should look for log files
73 # if path is set to null sidecar won't be deployed in spite of
74 # global.centralizedLoggingEnabled setting.
75 log:
76   path: /var/log/ONAP/dcaegen2/services/sliceanalysisms
77 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
78
79 # Probe Configuration
80 readiness:
81   initialDelaySeconds: 60
82   periodSeconds: 15
83   timeoutSeconds: 1
84   path: /healthcheck
85   scheme: HTTP
86   port: 8080
87
88 # Service Configuration
89 service:
90   type: ClusterIP
91   name: dcae-slice-analysis-ms
92   ports:
93     - name: http
94       port: 8080
95       port_protocol: http
96
97 serviceMesh:
98   authorizationPolicy:
99     authorizedPrincipals:
100       - serviceAccount: message-router-read
101     authorizedPrincipalsPostgres:
102       - serviceAccount: dcae-slice-analysis-ms-read
103
104 credentials:
105 - name: PG_USERNAME
106   uid:  *pgUserCredsSecretUid
107   key: login
108 - name: PG_PASSWORD
109   uid: *pgUserCredsSecretUid
110   key: password
111
112 # Initial Application Configuration
113 applicationConfig:
114   postgres.host: dcae-sliceanalysisms-pg-primary
115   postgres.port: 5432
116   postgres.username: ${PG_USERNAME}
117   postgres.password: ${PG_PASSWORD}
118   trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks
119   trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass
120   sliceanalysisms.pollingInterval: 20
121   sliceanalysisms.pollingTimeout: 60
122   cbsPollingInterval: 60
123   sliceanalysisms.namespace: onap
124   sliceanalysisms.dmaap.server: ["message-router"]
125   sliceanalysisms.bufferTime: 60
126   sliceanalysisms.cg: sliceanalysisms-cg
127   sliceanalysisms.cid: sliceanalysisms-cid
128   sliceanalysisms.configDb.service: http://config-db:8080
129   sliceanalysisms.configDbEnabled: true
130   sliceanalysisms.aai.url: http://aai-internal.onap.svc.cluster.local:80/aai/v21
131   sliceanalysisms.cps.url: http://cps:8080
132   sliceanalysisms.samples: 3
133   sliceanalysisms.minPercentageChange: 5
134   sliceanalysisms.initialDelaySeconds: 120000
135   sliceanalysisms.rannfnssiDetailsTemplateId: get-rannfnssiid-details
136   sliceanalysisms.desUrl: http://dl-des:1681/datalake/v1/exposure/pm_data
137   sliceanalysisms.pmDataDurationInWeeks: 4
138   sliceanalysisms.vesNotifPollingInterval: 15
139   sliceanalysisms.vesNotifChangeIdentifier: PM_BW_UPDATE
140   sliceanalysisms.vesNotifChangeType: BandwidthChanged
141   sliceanalysisms.aaiNotif.targetAction: UPDATE
142   sliceanalysisms.aaiNotif.targetSource: UUI
143   sliceanalysisms.aaiNotif.targetEntity: service-instance
144   sliceanalysisms.ccvpnEvalInterval: 5
145   sliceanalysisms.ccvpnEvalUpperThreshold: 0.8
146   sliceanalysisms.ccvpnEvalLowerThreshold: 0.3
147   sliceanalysisms.ccvpnEvalPrecision: 100.0
148   sliceanalysisms.ccvpnEvalPeriodicCheckOn: true
149   sliceanalysisms.ccvpnEvalOnDemandCheckOn: true
150   sliceanalysisms.ccvpnEvalStrategy: FlexibleThresholdStrategy
151   streams_publishes:
152     CL_topic:
153       type: message-router
154       dmaap_info:
155         topic_url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT
156   streams_subscribes:
157     performance_management_topic:
158       type: message-router
159       dmaap_info:
160         topic_url: http://message-router:3904/events/unauthenticated.PERFORMANCE_MEASUREMENTS
161     intelligent_slicing_topic:
162       type: message-router
163       dmaap_info:
164         topic_url: http://message-router:3904/events/unauthenticated.ML_RESPONSE_TOPIC
165     dcae_cl_response_topic:
166       type: message-router
167       dmaap_info:
168         topic_url: http://message-router:3904/events/DCAE_CL_RSP
169     ves_ccvpn_notification_topic:
170       type: message-router
171       dmaap_info:
172         topic_url: http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT
173     aai_subscriber:
174       type: message-router
175       servers : ["message-router:3904"]
176       consumer_group: dcae_ccvpn_cl
177       consumer_instance: dcae_ccvpn_cl_aaievent
178       fetch_timeout: 15000
179       fetch_limit: 100
180       dmaap_info:
181         topic_url: http://message-router:3904/events/AAI-EVENT
182
183 applicationEnv:
184   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
185   #Temporary Dummy CBS Port Value until internal SDK library is updated
186   CONFIG_BINDING_SERVICE_SERVICE_PORT: '0000'
187   STANDALONE: 'false'
188
189 # Resource Limit Flavor -By Default Using Small
190 flavor: small
191 # Segregation for Different Environment (Small and Large)
192 resources:
193   small:
194     limits:
195       cpu: "2"
196       memory: "2Gi"
197     requests:
198       cpu: "1"
199       memory: "2Gi"
200   large:
201     limits:
202       cpu: "4"
203       memory: "4Gi"
204     requests:
205       cpu: "2"
206       memory: "4Gi"
207   unlimited: {}
208
209 #################################################################
210 # Application configuration Overriding Defaults in the Postgres.
211 #################################################################
212 postgres:
213   nameOverride: &postgresName dcae-sliceanalysisms-postgres
214   service:
215     name: *postgresName
216     name2: dcae-sliceanalysisms-pg-primary
217     name3: dcae-sliceanalysisms-pg-replica
218   container:
219     name:
220       primary: dcae-sliceanalysisms-pg-primary
221       replica: dcae-sliceanalysisms-pg-replica
222   persistence:
223     mountSubPath: sliceanalysisms/data
224     mountInitPath: sliceanalysisms
225   config:
226     pgUserName: sliceanalysisms
227     pgDatabase: sliceanalysisms
228     pgUserExternalSecret: *pgUserCredsSecretName
229
230 # Dependencies
231 readinessCheck:
232   wait_for:
233     services:
234       - '{{ .Values.postgres.service.name2 }}'
235       - message-router
236
237 #Pods Service Account
238 serviceAccount:
239   nameOverride: dcae-slice-analysis-ms
240   roles:
241     - read