blob: 35d108d0009676955e06f86f9392d430993f36e4 [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
24
25#################################################################
26# Filebeat Configuration Defaults.
27#################################################################
28filebeatConfig:
29 logstashServiceName: log-ls
30 logstashPort: 5044
31
32#################################################################
33# Secrets Configuration.
34#################################################################
35secrets:
36 - uid: &aafCredsUID aafcreds
37 type: basicAuth
38 login: '{{ .Values.aafCreds.identity }}'
39 password: '{{ .Values.aafCreds.password }}'
40 passwordPolicy: required
41 - uid: &pgUserCredsSecretUid pg-user-creds
42 name: &pgUserCredsSecretName '{{ include "common.release" . }}-sliceanalysisms-pg-user-creds'
43 type: basicAuth
44 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sliceanalysisms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
45 login: '{{ .Values.postgres.config.pgUserName }}'
46 password: '{{ .Values.postgres.config.pgUserPassword }}'
47 passwordPolicy: generate
48
49################################aafcreds#################################
50# InitContainer Images.
51#################################################################
52tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040053consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
denilson.l65ce758f82021-05-25 13:54:50 +000054
55#################################################################
56# Application Configuration Defaults.
57#################################################################
58# Application Image
59image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.4
60
61# Log directory where logging sidecar should look for log files
62# if absent, no sidecar will be deployed
63logDirectory: /var/log/ONAP/dcaegen2/services/sliceanalysisms
64
65# Directory where TLS certs should be stored
66# if absent, no certs will be retrieved and stored
67certDirectory: /opt/app/sliceanalysisms/etc/cert/
68
69# TLS role -- set to true if microservice acts as server
70# If true, an init container will retrieve a server cert
71# and key from AAF and mount them in certDirectory.
72tlsServer: true
73
74# Dependencies
75readinessCheck:
76 wait_for:
77 - dcae-config-binding-service
78 - aaf-cm
79 - &postgresName dcae-sliceanalysisms-postgres
80
81# Probe Configuration
82readiness:
83 initialDelaySeconds: 60
84 periodSeconds: 15
85 timeoutSeconds: 1
86 path: /healthcheck
87 scheme: HTTP
88 port: 8080
89
90# Service Configuration
91service:
92 type: ClusterIP
93 name: dcae-slice-analysis-ms
94 ports:
95 - name: https
96 port: 8080
97 port_protocol: http
98
99# AAF Credentials
100aafCreds:
101 identity: dcae@dcae.onap.org
102 password: demo123456!
103
104credentials:
105- name: AAF_IDENTITY
106 uid: *aafCredsUID
107 key: login
108- name: AAF_PASSWORD
109 uid: *aafCredsUID
110 key: password
111- name: PG_USERNAME
112 uid: *pgUserCredsSecretUid
113 key: login
114- name: PG_PASSWORD
115 uid: *pgUserCredsSecretUid
116 key: password
117
118# Initial Application Configuration
119applicationConfig:
120 aafUsername: ${AAF_IDENTITY}
121 aafPassword: ${AAF_PASSWORD}
122 postgres.host: dcae-sliceanalysisms-pg-primary
123 postgres.port: 5432
124 postgres.username: ${PG_USERNAME}
125 postgres.password: ${PG_PASSWORD}
126 trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks
127 trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass
128 sliceanalysisms.pollingInterval: 20
129 sliceanalysisms.pollingTimeout: 60
130 cbsPollingInterval: 60
131 sliceanalysisms.namespace: onap
132 sliceanalysisms.dmaap.server: ["message-router"]
133 sliceanalysisms.bufferTime: 60
134 sliceanalysisms.cg: sliceanalysisms-cg
135 sliceanalysisms.cid: sliceanalysisms-cid
136 sliceanalysisms.configDb.service: http://config-db:8080
137 sliceanalysisms.configDbEnabled: true
138 sliceanalysisms.aai.url: https://aai.onap.svc.cluster.local:8443/aai/v21
139 sliceanalysisms.cps.url: https://cps:8088
140 sliceanalysisms.samples: 3
141 sliceanalysisms.minPercentageChange: 5
142 sliceanalysisms.initialDelaySeconds: 120000
143 streams_publishes:
144 CL_topic:
145 type: message-router
146 aaf_username: ${AAF_IDENTITY}
147 aaf_password: ${AAF_PASSWORD}
148 dmaap_info:
149 topic_url: https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT
150 streams_subscribes:
151 performance_management_topic:
152 type: message-router
153 aaf_username: ${AAF_IDENTITY}
154 aaf_password: ${AAF_PASSWORD}
155 dmaap_info:
156 topic_url: https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS
157 intelligent_slicing_topic:
158 type: message-router
159 aaf_username: ${AAF_IDENTITY}
160 aaf_password: ${AAF_PASSWORD}
161 dmaap_info:
162 topic_url: https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC
163 dcae_cl_response_topic:
164 type: message-router
165 aaf_username: ${AAF_IDENTITY}
166 aaf_password: ${AAF_PASSWORD}
167 dmaap_info:
168 topic_url: https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP
169
170applicationEnv:
171 STANDALONE: 'false'
172
173# Resource Limit Flavor -By Default Using Small
174flavor: small
175# Segregation for Different Environment (Small and Large)
176resources:
177 small:
178 limits:
179 cpu: 1
180 memory: 1Gi
181 requests:
182 cpu: 1
183 memory: 1Gi
184 large:
185 limits:
186 cpu: 2
187 memory: 2Gi
188 requests:
189 cpu: 2
190 memory: 2Gi
191 unlimited: {}
192
193#################################################################
194# Application configuration Overriding Defaults in the Postgres.
195#################################################################
196postgres:
197 nameOverride: *postgresName
198 service:
199 name: *postgresName
200 name2: dcae-sliceanalysisms-pg-primary
201 name3: dcae-sliceanalysisms-pg-replica
202 container:
203 name:
204 primary: dcae-sliceanalysisms-pg-primary
205 replica: dcae-sliceanalysisms-pg-replica
206 persistence:
207 mountSubPath: sliceanalysisms/data
208 mountInitPath: sliceanalysisms
209 config:
210 pgUserName: sliceanalysisms
211 pgDatabase: sliceanalysisms
212 pgUserExternalSecret: *pgUserCredsSecretName