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