Merge "[POLICY-PPNT] Move policy-clamp-ppnt use case to use strimzi kafka"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-son-handler / values.yaml
1 # ============= LICENSE_START ================================================
2 # ============================================================================
3 # Copyright (C) 2021-2022 Wipro Limited.
4 # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
5 # ============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============= LICENSE_END ==================================================
18
19 #################################################################
20 # Global Configuration Defaults.
21 #################################################################
22 global:
23   nodePortPrefix: 302
24   nodePortPrefixExt: 304
25   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
37 secrets:
38   - uid: &cpsCredsUID cpscreds
39     type: basicAuth
40     login: '{{ .Values.cpsCreds.identity }}'
41     password: '{{ .Values.cpsCreds.password }}'
42     passwordPolicy: required
43   - uid: &pgUserCredsSecretUid pg-user-creds
44     name: &pgUserCredsSecretName '{{ include "common.release" . }}-sonhms-pg-user-creds'
45     type: basicAuth
46     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sonhms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
47     login: '{{ .Values.postgres.config.pgUserName }}'
48     password: '{{ .Values.postgres.config.pgUserPassword }}'
49     passwordPolicy: generate
50
51 #################################################################
52 # Application Configuration Defaults.
53 #################################################################
54 # Application Image
55 image: onap/org.onap.dcaegen2.services.son-handler:2.1.11
56 pullPolicy: Always
57
58 # Log directory where logging sidecar should look for log files
59 # if path is set to null sidecar won't be deployed in spite of
60 # global.centralizedLoggingEnabled setting.
61 log:
62   path: /var/log/ONAP/dcaegen2/services/sonhms
63 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
64
65 # Optional Policy configuration properties
66 # if present, policy-sync side car will be deployed
67 #dcaePolicySyncImage: onap/org.onap.dcaegen2.deployments.dcae-services-policy-sync:1.0.1
68 #policies:
69 #  policyID: |
70 #    '["com.Config_PCIMS_CONFIG_POLICY"]'
71
72 # Dependencies
73 readinessCheck:
74   wait_for:
75     - &postgresName dcae-sonhms-postgres
76     - message-router
77
78 # Probe Configuration
79 readiness:
80   initialDelaySeconds: 10
81   periodSeconds: 15
82   timeoutSeconds: 1
83   path: /healthcheck
84   scheme: HTTP
85   port: 8080
86
87 # Service Configuration
88 service:
89   type: ClusterIP
90   name: dcae-son-handler
91   ports:
92     - name: http
93       port: 8080
94       port_protocol: http
95
96 # Credentials
97 cpsCreds:
98   identity: cps
99   password: cpsr0cks!
100
101 credentials:
102 - name: CPS_IDENTITY
103   uid: *cpsCredsUID
104   key: login
105 - name: CPS_PASSWORD
106   uid: *cpsCredsUID
107   key: password
108 - name: PG_USERNAME
109   uid:  *pgUserCredsSecretUid
110   key: login
111 - name: PG_PASSWORD
112   uid: *pgUserCredsSecretUid
113   key: password
114
115
116 # Initial Application Configuration
117 applicationConfig:
118   postgres.host: &dcaeSonhmsPgPrimary dcae-sonhms-pg-primary
119   postgres.port: 5432
120   postgres.username: ${PG_USERNAME}
121   postgres.password: ${PG_PASSWORD}
122   cps.username: ${CPS_IDENTITY}
123   cps.password: ${CPS_PASSWORD}
124   sonhandler.pollingInterval: 20
125   sonhandler.pollingTimeout: 60
126   cbsPollingInterval: 60
127   sonhandler.numSolutions: 5
128   sonhandler.minCollision: 5
129   sonhandler.minConfusion: 5
130   sonhandler.maximumClusters: 5
131   sonhandler.badThreshold: 50
132   sonhandler.poorThreshold: 70
133   sonhandler.namespace: onap
134   sonhandler.sourceId: SONHMS
135   sonhandler.dmaap.server: ["message-router"]
136   sonhandler.bufferTime: 60
137   sonhandler.cg: sonhms-cg
138   sonhandler.cid: sonhms-cid
139   sonhandler.clientType: cps
140   sonhandler.nearRtricUrl: "https://a1-policy-management:30294/a1-policy/v2/policies"
141   cps.service.url: http://cps-tbdmt:8080
142   cps.get.celldata: execute/cps-ran-schemaset/get-cell-data
143   cps.get.nbr.list.url: execute/cps-ran-schemaset/get-nbr-list
144   cps.get.pci.url: execute/ran-network-schemaset/get-pci
145   cps.get.pnf.url: execute/ran-network-schemaset/get-pnf
146   sonhandler.configDb.service: http://configdb:8080
147   sonhandler.oof.service: https://oof-osdf:8698
148   sonhandler.oof.endpoint: /api/oof/v1/pci
149   sonhandler.pciOptimizer: pci
150   sonhandler.pciAnrOptimizer: pci_anr
151   sonhandler.poorCountThreshold: 3
152   sonhandler.badCountThreshold: 3
153   sonhandler.oofTriggerCountTimer: 30
154   sonhandler.oofTriggerCountThreshold: 5
155   sonhandler.policyRespTimer: 10
156   sonhandler.policyNegativeAckThreshold: 3
157   sonhandler.policyFixedPciTimeInterval: 30000
158   sonhandler.nfNamingCode: RansimAgent
159   streams_publishes:
160     CL_topic:
161       type: message-router
162       dmaap_info:
163         topic_url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT
164   streams_subscribes:
165     performance_management_topic:
166       type: message-router
167       dmaap_info:
168         topic_url: http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT
169     fault_management_topic:
170       type: message-router
171       dmaap_info:
172         topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT
173     nbr_list_change_topic:
174       type: message-router
175       dmaap_info:
176         topic_url: http://message-router:3904/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO
177     dcae_cl_response_topic:
178       type: message-router
179       dmaap_info:
180         topic_url: http://message-router:3904/events/DCAE_CL_RSP
181   service_calls:
182       sdnr-getpnfname: []
183       sdnr-getpci: []
184       sdnr-getnbrlist: []
185       sdnr-getcelllist: []
186       oof-req: []
187       policy-req: []
188
189 applicationEnv:
190   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
191   #Temporary Dummy CBS Port Value until internal SDK library is updated
192   CONFIG_BINDING_SERVICE_SERVICE_PORT: '0000'
193   STANDALONE: 'false'
194
195 # Resource Limit Flavor -By Default Using Small
196 flavor: small
197
198 # Segregation for Different Environment (Small and Large)
199 resources:
200   small:
201     limits:
202       cpu: 1
203       memory: 1Gi
204     requests:
205       cpu: 1
206       memory: 1Gi
207   large:
208     limits:
209       cpu: 2
210       memory: 2Gi
211     requests:
212       cpu: 2
213       memory: 2Gi
214   unlimited: {}
215
216 #################################################################
217 # Application configuration Overriding Defaults in the Postgres.
218 #################################################################
219 postgres:
220   nameOverride: *postgresName
221   service:
222     name: *postgresName
223     name2: *dcaeSonhmsPgPrimary
224     name3: dcae-sonhms-pg-replica
225   container:
226     name:
227       primary: dcae-sonhms-pg-primary
228       replica: dcae-sonhms-pg-replica
229   persistence:
230     mountSubPath: sonhms/data
231     mountInitPath: sonhms
232   config:
233     pgUserName: sonhms
234     pgDatabase: sonhms
235     pgUserExternalSecret: *pgUserCredsSecretName
236
237 #Pods Service Account
238 serviceAccount:
239   nameOverride: dcae-son-handler
240   roles:
241     - read