blob: 63945914be2d5a2270c92210a84db00517801833 [file] [log] [blame]
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -04001# ================================ LICENSE_START =============================
2# ============================================================================
vv770d62d53782022-01-03 14:35:11 +00003# Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved.
Jack Lucas64da4e72023-03-03 14:46:05 -05004# Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
sushant53d52162b2023-04-13 12:38:46 +05305# Copyright (c) 2023 Deutsche Telekom AG. All rights reserved.
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -04006# ============================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ================================= LICENSE_END ==============================
19
20#################################################################
21# Global Configuration Defaults.
22#################################################################
23global:
24 nodePortPrefix: 302
25 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010026 centralizedLoggingEnabled: true
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040027
28#################################################################
29# Filebeat Configuration Defaults.
30#################################################################
31filebeatConfig:
32 logstashServiceName: log-ls
33 logstashPort: 5044
34
35#################################################################
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040036# Application Configuration Defaults.
37#################################################################
38# Application Image
sushant53d52162b2023-04-13 12:38:46 +053039image: onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.5.0
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040040pullPolicy: Always
41
42# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010043# if path is set to null sidecar won't be deployed in spite of
44# global.centralizedLoggingEnabled setting.
45log:
46 path: /opt/app/VESAdapter/logs
47logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040048
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040049# Dependencies
50readinessCheck:
51 wait_for:
rope2525a7fbee2022-07-25 20:00:36 +010052 - message-router
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040053
54# Service Configuration
55service:
56 type: ClusterIP
57 name: dcae-ves-mapper
58 ports:
59 - name: http
60 port: 80
61 port_protocol: http
62
AndrewLambbd6ff6b2023-05-04 15:56:49 +010063serviceMesh:
64 authorizationPolicy:
65 authorizedPrincipals:
66 - serviceAccount: message-router-read
67
Vijay Venkatesh Kumar5e138112021-12-14 11:41:36 -050068# application environments
69applicationEnv:
70 LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true'
Vijay Venkatesh Kumar41fc5a22022-03-08 16:28:05 -050071 CONFIG_BINDING_SERVICE_SERVICE_PORT: '10000' # Workaround until DCAEGEN2-3098 is addressed
72 CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
73
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040074
75# Initial Application Configuration
76applicationConfig:
77 app_preferences:
78 collectors:
79 - identifier: notification-id
80 mapping-files:
81 - defaultMappingFile-rcc-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list
82 xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd'
83 xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent'
84 keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&amp;time' to='date-and-time'
85 /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent'
86 beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event'
87 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event'
88 createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader'
89 /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields'
90 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader'
91 beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1</jb:expression><jb:expression
92 property='eventType'>'pnfRegistration'</jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1</jb:expression><jb:expression
93 property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1</jb:expression><jb:expression
94 property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION</jb:expression><jb:expression
95 property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value
96 property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec'
97 execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression
98 property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression
99 property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression
100 property='sourceName' execOnElement='vesevent'>pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber</jb:expression></jb:bean><jb:bean
101 class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields'
102 createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0</jb:expression><jb:value
103 property='serialNumber' data='pnfRegistration/serialNumber' /><jb:value property='lastServiceDate'
104 data='pnfRegistration/lastServiceDate' /><jb:value property='manufactureDate'
105 data='pnfRegistration/manufactureDate' /><jb:value property='modelNumber'
106 data='pnfRegistration/modelNumber' /><jb:value property='oamV4IpAddress' data='pnfRegistration/oamV4IpAddress'
107 /><jb:value property='oamV6IpAddress' data='pnfRegistration/oamV6IpAddress'
108 /><jb:value property='softwareVersion' data='pnfRegistration/softwareVersion'
109 /><jb:value property='unitFamily' data='pnfRegistration/unitFamily' /><jb:value
110 property='unitType' data='pnfRegistration/unitType' /><jb:value property='vendorName'
111 data='pnfRegistration/vendorName' /><jb:wiring property='additionalFields'
112 beanIdRef='alarmAdditionalInformation' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation'
113 beanId='alarmAdditionalInformation' createOnElement='vesevent'><jb:wiring
114 property='additionalProperties' beanIdRef='additionalFields2' /></jb:bean><jb:bean
115 beanId='additionalFields2' class='java.util.HashMap' createOnElement='vesevent/pnfRegistration/additionalFields'><jb:value
116 data='pnfRegistration/additionalFields/*'/></jb:bean></smooks-resource-list>"
117 stream_publisher: ves-pnfRegistration
118 stream_subscriber: rcc-notification
119 - identifier: notify OID
120 mapping-files:
121 - defaultMappingFile-snmp-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list
122 xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd'
123 xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent'
124 keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&amp;time' to='date-and-time'
125 /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent'
126 beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event'
127 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event'
128 createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader'
129 /><jb:wiring property='faultFields' beanIdRef='faultFields' /></jb:bean><jb:bean
130 class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader'
131 createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression
132 property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId'
133 execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression
134 property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression
135 property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value
136 property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec'
137 data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received'
138 /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression
139 property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields'
140 beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion'
141 data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition'
142 data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression
143 property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression
144 property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring
145 property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot'
146 /></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot'
147 createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation'
148 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation'
149 beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value
150 property='name' data='#/varbind_oid' /><jb:value property='value' data='#/varbind_value'
151 /></jb:bean></smooks-resource-list>"
152 stream_publisher: ves-fault
153 stream_subscriber: snmp-notification
154 streams_publishes:
155 ves-fault:
156 dmaap_info:
157 topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT
158 type: message_router
159 ves-pnfRegistration:
160 dmaap_info:
161 topic_url: http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT
162 type: message_router
163 streams_subscribes:
164 rcc-notification:
165 dmaap_info:
166 topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT
167 type: message_router
168 snmp-notification:
169 dmaap_info:
170 topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP
171 type: message_router
172
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400173# Resource Limit Flavor -By Default Using Small
174flavor: small
175
176# Segregation for Different Environment (Small and Large)
177resources:
178 small:
179 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100180 cpu: "1"
181 memory: "1Gi"
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400182 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100183 cpu: "1"
184 memory: "1Gi"
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400185 large:
186 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100187 cpu: "2"
188 memory: "2Gi"
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400189 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100190 cpu: "2"
191 memory: "2Gi"
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400192 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200193
194#Pods Service Account
195serviceAccount:
196 nameOverride: dcae-ves-mapper
197 roles:
198 - read