blob: cf9e84bfe2228365cca16b1d0f9546392d364d14 [file] [log] [blame]
denilson.l65ce758f82021-05-25 13:54:50 +00001# ============= LICENSE_START ================================================
2# ============================================================================
3# Copyright (C) 2021 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#################################################################
21global:
22 nodePortPrefix: 302
23 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010024 centralizedLoggingEnabled: true
denilson.l65ce758f82021-05-25 13:54:50 +000025
26#################################################################
27# Filebeat Configuration Defaults.
28#################################################################
29filebeatConfig:
30 logstashServiceName: log-ls
31 logstashPort: 5044
32
33#################################################################
34# Secrets Configuration.
35#################################################################
36secrets:
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#################################################################
53tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040054consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
denilson.l65ce758f82021-05-25 13:54:50 +000055
56#################################################################
57# Application Configuration Defaults.
58#################################################################
59# Application Image
Vijay Venkatesh Kumar8eeeecd2021-09-13 17:02:05 -040060image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.6
denilson.l65ce758f82021-05-25 13:54:50 +000061
62# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010063# if path is set to null sidecar won't be deployed in spite of
64# global.centralizedLoggingEnabled setting.
65log:
66 path: /var/log/ONAP/dcaegen2/services/sliceanalysisms
67logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
denilson.l65ce758f82021-05-25 13:54:50 +000068
69# Directory where TLS certs should be stored
70# if absent, no certs will be retrieved and stored
71certDirectory: /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.
76tlsServer: true
77
78# Dependencies
79readinessCheck:
80 wait_for:
denilson.l65ce758f82021-05-25 13:54:50 +000081 - aaf-cm
82 - &postgresName dcae-sliceanalysisms-postgres
83
84# Probe Configuration
85readiness:
86 initialDelaySeconds: 60
87 periodSeconds: 15
88 timeoutSeconds: 1
89 path: /healthcheck
90 scheme: HTTP
91 port: 8080
92
93# Service Configuration
94service:
95 type: ClusterIP
96 name: dcae-slice-analysis-ms
97 ports:
98 - name: https
99 port: 8080
100 port_protocol: http
101
102# AAF Credentials
103aafCreds:
104 identity: dcae@dcae.onap.org
105 password: demo123456!
106
107credentials:
108- name: AAF_IDENTITY
109 uid: *aafCredsUID
110 key: login
111- name: AAF_PASSWORD
112 uid: *aafCredsUID
113 key: password
114- name: PG_USERNAME
115 uid: *pgUserCredsSecretUid
116 key: login
117- name: PG_PASSWORD
118 uid: *pgUserCredsSecretUid
119 key: password
120
121# Initial Application Configuration
122applicationConfig:
123 aafUsername: ${AAF_IDENTITY}
124 aafPassword: ${AAF_PASSWORD}
125 postgres.host: dcae-sliceanalysisms-pg-primary
126 postgres.port: 5432
127 postgres.username: ${PG_USERNAME}
128 postgres.password: ${PG_PASSWORD}
129 trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks
130 trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass
131 sliceanalysisms.pollingInterval: 20
132 sliceanalysisms.pollingTimeout: 60
133 cbsPollingInterval: 60
134 sliceanalysisms.namespace: onap
135 sliceanalysisms.dmaap.server: ["message-router"]
136 sliceanalysisms.bufferTime: 60
137 sliceanalysisms.cg: sliceanalysisms-cg
138 sliceanalysisms.cid: sliceanalysisms-cid
139 sliceanalysisms.configDb.service: http://config-db:8080
140 sliceanalysisms.configDbEnabled: true
141 sliceanalysisms.aai.url: https://aai.onap.svc.cluster.local:8443/aai/v21
142 sliceanalysisms.cps.url: https://cps:8088
143 sliceanalysisms.samples: 3
144 sliceanalysisms.minPercentageChange: 5
145 sliceanalysisms.initialDelaySeconds: 120000
146 streams_publishes:
147 CL_topic:
148 type: message-router
149 aaf_username: ${AAF_IDENTITY}
150 aaf_password: ${AAF_PASSWORD}
151 dmaap_info:
152 topic_url: https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT
153 streams_subscribes:
154 performance_management_topic:
155 type: message-router
156 aaf_username: ${AAF_IDENTITY}
157 aaf_password: ${AAF_PASSWORD}
158 dmaap_info:
159 topic_url: https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS
160 intelligent_slicing_topic:
161 type: message-router
162 aaf_username: ${AAF_IDENTITY}
163 aaf_password: ${AAF_PASSWORD}
164 dmaap_info:
165 topic_url: https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC
166 dcae_cl_response_topic:
167 type: message-router
168 aaf_username: ${AAF_IDENTITY}
169 aaf_password: ${AAF_PASSWORD}
170 dmaap_info:
171 topic_url: https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP
172
173applicationEnv:
174 STANDALONE: 'false'
175
176# Resource Limit Flavor -By Default Using Small
177flavor: small
178# Segregation for Different Environment (Small and Large)
179resources:
180 small:
181 limits:
182 cpu: 1
183 memory: 1Gi
184 requests:
185 cpu: 1
186 memory: 1Gi
187 large:
188 limits:
189 cpu: 2
190 memory: 2Gi
191 requests:
192 cpu: 2
193 memory: 2Gi
194 unlimited: {}
195
196#################################################################
197# Application configuration Overriding Defaults in the Postgres.
198#################################################################
199postgres:
200 nameOverride: *postgresName
201 service:
202 name: *postgresName
203 name2: dcae-sliceanalysisms-pg-primary
204 name3: dcae-sliceanalysisms-pg-replica
205 container:
206 name:
207 primary: dcae-sliceanalysisms-pg-primary
208 replica: dcae-sliceanalysisms-pg-replica
209 persistence:
210 mountSubPath: sliceanalysisms/data
211 mountInitPath: sliceanalysisms
212 config:
213 pgUserName: sliceanalysisms
214 pgDatabase: sliceanalysisms
215 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200216
217#Pods Service Account
218serviceAccount:
219 nameOverride: dcae-slice-analysis-ms
220 roles:
221 - read