[DCAEGEN2-SERVICE] Add policy sync for slicems
[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 image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.1.3
62 pullPolicy: IfNotPresent
63
64 #################################################################
65 # Policy Sync Container Image.
66 #################################################################
67 # optional Policy configuration properties
68 # if present, policy-sync side car will be deployed
69 # policy sync is used for provide runtime configuration for slicems
70 # policy id is originally set to "onap.dcae.slicems.config"
71
72 # dcaePolicySyncImage: onap/org.onap.dcaegen2.deployments.dcae-services-policy-sync:1.0.1
73 # policies:
74 #  duration:
75 #          300
76 #  policyID: |
77 #    '["onap.dcae.slicems.config"]'
78
79 # Log directory where logging sidecar should look for log files
80 # if path is set to null sidecar won't be deployed in spite of
81 # global.centralizedLoggingEnabled setting.
82 log:
83   path: /var/log/ONAP/dcaegen2/services/sliceanalysisms
84 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
85
86 # Directory where TLS certs should be stored
87 # if absent, no certs will be retrieved and stored
88 certDirectory: /opt/app/sliceanalysisms/etc/cert/
89
90 # TLS role -- set to true if microservice acts as server
91 # If true, an init container will retrieve a server cert
92 # and key from AAF and mount them in certDirectory.
93 tlsServer: true
94
95 # Dependencies
96 readinessCheck:
97   wait_for:
98     - aaf-cm
99     - &postgresName dcae-sliceanalysisms-postgres
100
101 # Probe Configuration
102 readiness:
103   initialDelaySeconds: 60
104   periodSeconds: 15
105   timeoutSeconds: 1
106   path: /healthcheck
107   scheme: HTTP
108   port: 8080
109
110 # Service Configuration
111 service:
112   type: ClusterIP
113   name: dcae-slice-analysis-ms
114   ports:
115     - name: https
116       port: 8080
117       port_protocol: http
118
119 # AAF Credentials
120 aafCreds:
121   identity: dcae@dcae.onap.org
122   password: demo123456!
123
124 credentials:
125 - name: AAF_IDENTITY
126   uid: *aafCredsUID
127   key: login
128 - name: AAF_PASSWORD
129   uid: *aafCredsUID
130   key: password
131 - name: PG_USERNAME
132   uid:  *pgUserCredsSecretUid
133   key: login
134 - name: PG_PASSWORD
135   uid: *pgUserCredsSecretUid
136   key: password
137
138 # Initial Application Configuration
139 applicationConfig:
140   postgres.host: dcae-sliceanalysisms-pg-primary
141   postgres.port: 5432
142   postgres.username: ${PG_USERNAME}
143   postgres.password: ${PG_PASSWORD}
144   trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks
145   trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass
146   sliceanalysisms.pollingInterval: 20
147   sliceanalysisms.pollingTimeout: 60
148   cbsPollingInterval: 60
149   sliceanalysisms.namespace: onap
150   sliceanalysisms.dmaap.server: ["message-router"]
151   sliceanalysisms.bufferTime: 60
152   sliceanalysisms.cg: sliceanalysisms-cg
153   sliceanalysisms.cid: sliceanalysisms-cid
154   sliceanalysisms.configDb.service: http://config-db:8080
155   sliceanalysisms.configDbEnabled: true
156   sliceanalysisms.aai.url: https://aai.onap.svc.cluster.local:8443/aai/v21
157   sliceanalysisms.cps.url: https://cps:8088
158   sliceanalysisms.samples: 3
159   sliceanalysisms.minPercentageChange: 5
160   sliceanalysisms.initialDelaySeconds: 120000
161   sliceanalysisms.rannfnssiDetailsTemplateId: get-rannfnssiid-details
162   sliceanalysisms.desUrl: http://dl-des:1681/datalake/v1/exposure/pm_data
163   sliceanalysisms.pmDataDurationInWeeks: 4
164   sliceanalysisms.vesNotifPollingInterval: 15
165   sliceanalysisms.vesNotifChangeIdentifier: PM_BW_UPDATE
166   sliceanalysisms.vesNotifChangeType: BandwidthChanged
167   sliceanalysisms.aaiNotif.targetAction: UPDATE
168   sliceanalysisms.aaiNotif.targetSource: UUI
169   sliceanalysisms.aaiNotif.targetEntity: service-instance
170   sliceanalysisms.ccvpnEvalInterval: 15
171   sliceanalysisms.ccvpnEvalThreshold: 0.8
172   sliceanalysisms.ccvpnEvalPrecision: 100.0
173   sliceanalysisms.ccvpnEvalPeriodicCheckOn: true
174   sliceanalysisms.ccvpnEvalOnDemandCheckOn: true
175   streams_publishes:
176     CL_topic:
177       type: message-router
178       dmaap_info:
179         topic_url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT
180   streams_subscribes:
181     performance_management_topic:
182       type: message-router
183       dmaap_info:
184         topic_url: http://message-router:3904/events/unauthenticated.PERFORMANCE_MEASUREMENTS
185     intelligent_slicing_topic:
186       type: message-router
187       dmaap_info:
188         topic_url: http://message-router:3904/events/unauthenticated.ML_RESPONSE_TOPIC
189     dcae_cl_response_topic:
190       type: message-router
191       dmaap_info:
192         topic_url: http://message-router:3904/events/DCAE_CL_RSP
193     ves_ccvpn_notification_topic:
194       type: message-router
195       dmaap_info:
196         topic_url: http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT
197     aai_subscriber:
198       type: message-router
199       servers : ["message-router:3904"]
200       consumer_group: dcae_ccvpn_cl
201       consumer_instance: dcae_ccvpn_cl_aaievent
202       fetch_timeout: 15000
203       fetch_limit: 100
204       dmaap_info:
205         topic_url: http://message-router:3904/events/AAI-EVENT
206
207 applicationEnv:
208   STANDALONE: 'false'
209
210 # Resource Limit Flavor -By Default Using Small
211 flavor: small
212 # Segregation for Different Environment (Small and Large)
213 resources:
214   small:
215     limits:
216       cpu: 1
217       memory: 1Gi
218     requests:
219       cpu: 1
220       memory: 1Gi
221   large:
222     limits:
223       cpu: 2
224       memory: 2Gi
225     requests:
226       cpu: 2
227       memory: 2Gi
228   unlimited: {}
229
230 #################################################################
231 # Application configuration Overriding Defaults in the Postgres.
232 #################################################################
233 postgres:
234   nameOverride: *postgresName
235   service:
236     name: *postgresName
237     name2: dcae-sliceanalysisms-pg-primary
238     name3: dcae-sliceanalysisms-pg-replica
239   container:
240     name:
241       primary: dcae-sliceanalysisms-pg-primary
242       replica: dcae-sliceanalysisms-pg-replica
243   persistence:
244     mountSubPath: sliceanalysisms/data
245     mountInitPath: sliceanalysisms
246   config:
247     pgUserName: sliceanalysisms
248     pgDatabase: sliceanalysisms
249     pgUserExternalSecret: *pgUserCredsSecretName
250
251 #Pods Service Account
252 serviceAccount:
253   nameOverride: dcae-slice-analysis-ms
254   roles:
255     - read