94c4d880ddb131d95eeedb29f7fe221a6c2cd506
[oom.git] / kubernetes / dcaegen2-services / components / dcae-son-handler / values.yaml
1 # ============= 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 #################################################################
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: &cpsCredsUID cpscreds
43     type: basicAuth
44     login: '{{ .Values.cpsCreds.identity }}'
45     password: '{{ .Values.cpsCreds.password }}'
46     passwordPolicy: required
47   - uid: &pgUserCredsSecretUid pg-user-creds
48     name: &pgUserCredsSecretName '{{ include "common.release" . }}-sonhms-pg-user-creds'
49     type: basicAuth
50     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sonhms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
51     login: '{{ .Values.postgres.config.pgUserName }}'
52     password: '{{ .Values.postgres.config.pgUserPassword }}'
53     passwordPolicy: generate
54
55 #################################################################
56 # InitContainer Images.
57 #################################################################
58 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
59 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
60
61 #################################################################
62 # Application Configuration Defaults.
63 #################################################################
64 # Application Image
65 image: onap/org.onap.dcaegen2.services.son-handler:2.1.5
66 pullPolicy: Always
67
68 # Log directory where logging sidecar should look for log files
69 # if path is set to null sidecar won't be deployed in spite of
70 # global.centralizedLoggingEnabled setting.
71 log:
72   path: /var/log/ONAP/dcaegen2/services/sonhms
73 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
74
75 # Directory where TLS certs should be stored
76 # if absent, no certs will be retrieved and stored
77 certDirectory: /opt/app/sonhms/etc/certs
78
79 # TLS role -- set to true if microservice acts as server
80 # If true, an init container will retrieve a server cert
81 # and key from AAF and mount them in certDirectory.
82 tlsServer: false
83
84 # Policy configuraiton properties
85 # if present, policy-sync side car will be deployed
86 dcaePolicySyncImage: onap/org.onap.dcaegen2.deployments.dcae-services-policy-sync:1.0.1
87 policies:
88   policyID: |
89     '["com.Config_PCIMS_CONFIG_POLICY"]'
90
91 # Dependencies
92 readinessCheck:
93   wait_for:
94     - dcae-config-binding-service
95     - aaf-cm
96     - &postgresName dcae-sonhms-postgres
97
98 # Probe Configuration
99 readiness:
100   initialDelaySeconds: 10
101   periodSeconds: 15
102   timeoutSeconds: 1
103   path: /healthcheck
104   scheme: HTTP
105   port: 8080
106
107 # Service Configuration
108 service:
109   type: ClusterIP
110   name: dcae-son-handler
111   ports:
112     - name: https
113       port: 8080
114       port_protocol: http
115
116 # AAF Credentials
117 aafCreds:
118   identity: dcae@dcae.onap.org
119   password: demo123456!
120 cpsCreds:
121   identity: cps
122   password: cpsr0cks!
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: CPS_IDENTITY
132   uid: *cpsCredsUID
133   key: login
134 - name: CPS_PASSWORD
135   uid: *cpsCredsUID
136   key: password
137 - name: PG_USERNAME
138   uid:  *pgUserCredsSecretUid
139   key: login
140 - name: PG_PASSWORD
141   uid: *pgUserCredsSecretUid
142   key: password
143
144
145 # Initial Application Configuration
146 applicationConfig:
147   postgres.host: &dcaeSonhmsPgPrimary dcae-sonhms-pg-primary
148   postgres.port: 5432
149   postgres.username: ${PG_USERNAME}
150   postgres.password: ${PG_PASSWORD}
151   cps.username: ${CPS_IDENTITY}
152   cps.password: ${CPS_PASSWORD}
153   sonhandler.pollingInterval: 20
154   sonhandler.pollingTimeout: 60
155   cbsPollingInterval: 60
156   sonhandler.numSolutions: 5
157   sonhandler.minCollision: 5
158   sonhandler.minConfusion: 5
159   sonhandler.maximumClusters: 5
160   sonhandler.badThreshold: 50
161   sonhandler.poorThreshold: 70
162   sonhandler.namespace: onap
163   sonhandler.sourceId: SONHMS
164   sonhandler.dmaap.server: ["message-router"]
165   sonhandler.bufferTime: 60
166   sonhandler.cg: sonhms-cg
167   sonhandler.cid: sonhms-cid
168   sonhandler.clientType: cps
169   cps.service.url: http://cps-tbdmt:8080
170   cps.get.celldata: execute/cps-ran-schemaset/get-cell-data
171   cps.get.nbr.list.url: execute/cps-ran-schemaset/get-nbr-list
172   cps.get.pci.url: execute/ran-network-schemaset/get-pci
173   cps.get.pnf.url: execute/ran-network-schemaset/get-pnf
174   sonhandler.configDb.service: http://configdb:8080
175   sonhandler.oof.service: https://oof-osdf:8698
176   sonhandler.oof.endpoint: /api/oof/v1/pci
177   sonhandler.pciOptimizer: pci
178   sonhandler.pciAnrOptimizer: pci_anr
179   sonhandler.poorCountThreshold: 3
180   sonhandler.badCountThreshold: 3
181   sonhandler.oofTriggerCountTimer: 30
182   sonhandler.oofTriggerCountThreshold: 5
183   sonhandler.policyRespTimer: 10
184   sonhandler.policyNegativeAckThreshold: 3
185   sonhandler.policyFixedPciTimeInterval: 30000
186   sonhandler.nfNamingCode: RansimAgent
187   streams_publishes:
188     CL_topic:
189       type: message-router
190       aaf_username: ${AAF_IDENTITY}
191       aaf_password: ${AAF_PASSWORD}
192       dmaap_info:
193         topic_url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT
194   streams_subscribes:
195     performance_management_topic:
196       type: message-router
197       aaf_username: ${AAF_IDENTITY}
198       aaf_password: ${AAF_PASSWORD}
199       dmaap_info:
200         topic_url: https://message-router:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT
201     fault_management_topic:
202       type: message-router
203       aaf_username: ${AAF_IDENTITY}
204       aaf_password: ${AAF_PASSWORD}
205       dmaap_info:
206         topic_url: https://message-router:3905/events/unauthenticated.SEC_FAULT_OUTPUT
207     nbr_list_change_topic:
208       type: message-router
209       aaf_username: ${AAF_IDENTITY}
210       aaf_password: ${AAF_PASSWORD}
211       dmaap_info:
212         topic_url: https://message-router:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO
213     dcae_cl_response_topic:
214       type: message-router
215       aaf_username: ${AAF_IDENTITY}
216       aaf_password: ${AAF_PASSWORD}
217       dmaap_info:
218         topic_url: https://message-router:3905/events/DCAE_CL_RSP
219   service_calls:
220       sdnr-getpnfname: []
221       sdnr-getpci: []
222       sdnr-getnbrlist: []
223       sdnr-getcelllist: []
224       oof-req: []
225       policy-req: []
226
227 applicationEnv:
228   STANDALONE: 'false'
229
230 # Resource Limit Flavor -By Default Using Small
231 flavor: small
232
233 # Segregation for Different Environment (Small and Large)
234 resources:
235   small:
236     limits:
237       cpu: 1
238       memory: 1Gi
239     requests:
240       cpu: 1
241       memory: 1Gi
242   large:
243     limits:
244       cpu: 2
245       memory: 2Gi
246     requests:
247       cpu: 2
248       memory: 2Gi
249   unlimited: {}
250
251 #################################################################
252 # Application configuration Overriding Defaults in the Postgres.
253 #################################################################
254 postgres:
255   nameOverride: *postgresName
256   service:
257     name: *postgresName
258     name2: *dcaeSonhmsPgPrimary
259     name3: dcae-sonhms-pg-replica
260   container:
261     name:
262       primary: dcae-sonhms-pg-primary
263       replica: dcae-sonhms-pg-replica
264   persistence:
265     mountSubPath: sonhms/data
266     mountInitPath: sonhms
267   config:
268     pgUserName: sonhms
269     pgDatabase: sonhms
270     pgUserExternalSecret: *pgUserCredsSecretName
271
272 #Pods Service Account
273 serviceAccount:
274   nameOverride: dcae-son-handler
275   roles:
276     - read