[DCAE] Update application config properties in slice-analysis-ms
[oom.git] / kubernetes / dcaegen2-services / components / dcae-slice-analysis-ms / values.yaml
1 # ============= LICENSE_START ================================================
2 # ============================================================================
3 # Copyright (C) 2021-2022 Wipro Limited.
4 # ============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============= LICENSE_END ==================================================
17
18 #################################################################
19 # Global Configuration Defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24   centralizedLoggingEnabled: true
25
26 #################################################################
27 # Filebeat Configuration Defaults.
28 #################################################################
29 filebeatConfig:
30   logstashServiceName: log-ls
31   logstashPort: 5044
32
33 #################################################################
34 # Secrets Configuration.
35 #################################################################
36 secrets:
37   - uid: &aafCredsUID aafcreds
38     type: basicAuth
39     login: '{{ .Values.aafCreds.identity }}'
40     password: '{{ .Values.aafCreds.password }}'
41     passwordPolicy: required
42   - uid: &pgUserCredsSecretUid pg-user-creds
43     name: &pgUserCredsSecretName '{{ include "common.release" . }}-sliceanalysisms-pg-user-creds'
44     type: basicAuth
45     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sliceanalysisms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
46     login: '{{ .Values.postgres.config.pgUserName }}'
47     password: '{{ .Values.postgres.config.pgUserPassword }}'
48     passwordPolicy: generate
49
50 ################################aafcreds#################################
51 # InitContainer Images.
52 #################################################################
53 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
54 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
55
56 #################################################################
57 # Application Configuration Defaults.
58 #################################################################
59 # Application Image
60 image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.7
61
62 # Log directory where logging sidecar should look for log files
63 # if path is set to null sidecar won't be deployed in spite of
64 # global.centralizedLoggingEnabled setting.
65 log:
66   path: /var/log/ONAP/dcaegen2/services/sliceanalysisms
67 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
68
69 # Directory where TLS certs should be stored
70 # if absent, no certs will be retrieved and stored
71 certDirectory: /opt/app/sliceanalysisms/etc/cert/
72
73 # TLS role -- set to true if microservice acts as server
74 # If true, an init container will retrieve a server cert
75 # and key from AAF and mount them in certDirectory.
76 tlsServer: true
77
78 # Dependencies
79 readinessCheck:
80   wait_for:
81     - dcae-config-binding-service
82     - aaf-cm
83     - &postgresName dcae-sliceanalysisms-postgres
84
85 # Probe Configuration
86 readiness:
87   initialDelaySeconds: 60
88   periodSeconds: 15
89   timeoutSeconds: 1
90   path: /healthcheck
91   scheme: HTTP
92   port: 8080
93
94 # Service Configuration
95 service:
96   type: ClusterIP
97   name: dcae-slice-analysis-ms
98   ports:
99     - name: https
100       port: 8080
101       port_protocol: http
102
103 # AAF Credentials
104 aafCreds:
105   identity: dcae@dcae.onap.org
106   password: demo123456!
107
108 credentials:
109 - name: AAF_IDENTITY
110   uid: *aafCredsUID
111   key: login
112 - name: AAF_PASSWORD
113   uid: *aafCredsUID
114   key: password
115 - name: PG_USERNAME
116   uid:  *pgUserCredsSecretUid
117   key: login
118 - name: PG_PASSWORD
119   uid: *pgUserCredsSecretUid
120   key: password
121
122 # Initial Application Configuration
123 applicationConfig:
124   postgres.host: dcae-sliceanalysisms-pg-primary
125   postgres.port: 5432
126   postgres.username: ${PG_USERNAME}
127   postgres.password: ${PG_PASSWORD}
128   trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks
129   trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass
130   sliceanalysisms.pollingInterval: 20
131   sliceanalysisms.pollingTimeout: 60
132   cbsPollingInterval: 60
133   sliceanalysisms.namespace: onap
134   sliceanalysisms.dmaap.server: ["message-router"]
135   sliceanalysisms.bufferTime: 60
136   sliceanalysisms.cg: sliceanalysisms-cg
137   sliceanalysisms.cid: sliceanalysisms-cid
138   sliceanalysisms.configDb.service: http://config-db:8080
139   sliceanalysisms.configDbEnabled: true
140   sliceanalysisms.aai.url: https://aai.onap.svc.cluster.local:8443/aai/v21
141   sliceanalysisms.cps.url: https://cps:8088
142   sliceanalysisms.samples: 3
143   sliceanalysisms.minPercentageChange: 5
144   sliceanalysisms.initialDelaySeconds: 120000
145   sliceanalysisms.rannfnssiDetailsTemplateId: get-rannfnssiid-details
146   sliceanalysisms.desUrl: http://dl-des:1681/datalake/v1/exposure/pm_data
147   sliceanalysisms.pmDataDurationInWeeks: 4
148   streams_publishes:
149     CL_topic:
150       type: message-router
151       aaf_username: ${AAF_IDENTITY}
152       aaf_password: ${AAF_PASSWORD}
153       dmaap_info:
154         topic_url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT
155   streams_subscribes:
156     performance_management_topic:
157       type: message-router
158       aaf_username: ${AAF_IDENTITY}
159       aaf_password: ${AAF_PASSWORD}
160       dmaap_info:
161         topic_url: http://message-router:3904/events/unauthenticated.PERFORMANCE_MEASUREMENTS
162     intelligent_slicing_topic:
163       type: message-router
164       aaf_username: ${AAF_IDENTITY}
165       aaf_password: ${AAF_PASSWORD}
166       dmaap_info:
167         topic_url: http://message-router:3904/events/unauthenticated.ML_RESPONSE_TOPIC
168     dcae_cl_response_topic:
169       type: message-router
170       aaf_username: ${AAF_IDENTITY}
171       aaf_password: ${AAF_PASSWORD}
172       dmaap_info:
173         topic_url: http://message-router:3904/events/DCAE_CL_RSP
174
175 applicationEnv:
176   STANDALONE: 'false'
177
178 # Resource Limit Flavor -By Default Using Small
179 flavor: small
180 # Segregation for Different Environment (Small and Large)
181 resources:
182   small:
183     limits:
184       cpu: 1
185       memory: 1Gi
186     requests:
187       cpu: 1
188       memory: 1Gi
189   large:
190     limits:
191       cpu: 2
192       memory: 2Gi
193     requests:
194       cpu: 2
195       memory: 2Gi
196   unlimited: {}
197
198 #################################################################
199 # Application configuration Overriding Defaults in the Postgres.
200 #################################################################
201 postgres:
202   nameOverride: *postgresName
203   service:
204     name: *postgresName
205     name2: dcae-sliceanalysisms-pg-primary
206     name3: dcae-sliceanalysisms-pg-replica
207   container:
208     name:
209       primary: dcae-sliceanalysisms-pg-primary
210       replica: dcae-sliceanalysisms-pg-replica
211   persistence:
212     mountSubPath: sliceanalysisms/data
213     mountInitPath: sliceanalysisms
214   config:
215     pgUserName: sliceanalysisms
216     pgDatabase: sliceanalysisms
217     pgUserExternalSecret: *pgUserCredsSecretName
218
219 #Pods Service Account
220 serviceAccount:
221   nameOverride: dcae-slice-analysis-ms
222   roles:
223     - read