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