blob: fd2ceedc9c327bc4142989bab0f98b2c717f6391 [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.
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -04004# ============================================================================
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# InitContainer Images.
34#################################################################
35tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040036consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040037
38#################################################################
39# Application Configuration Defaults.
40#################################################################
41# Application Image
vv770d62d53782022-01-03 14:35:11 +000042image: onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.3.1
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040043pullPolicy: Always
44
45# Log directory where logging sidecar should look for log files
46# if absent, no sidecar will be deployed
47logDirectory: /opt/app/VESAdapter/logs
48
49# Directory where TLS certs should be stored
50# if absent, no certs will be retrieved and stored
51#certDirectory: /opt/app/ves-mapper/etc/certs
52
53# TLS role -- set to true if microservice acts as server
54# If true, an init container will retrieve a server cert
55# and key from AAF and mount them in certDirectory.
56#tlsServer: true
57
58# Dependencies
59readinessCheck:
60 wait_for:
61 - dcae-config-binding-service
62 - aaf-cm
63
64# Service Configuration
65service:
66 type: ClusterIP
67 name: dcae-ves-mapper
68 ports:
69 - name: http
70 port: 80
71 port_protocol: http
72
Vijay Venkatesh Kumar5e138112021-12-14 11:41:36 -050073# application environments
74applicationEnv:
75 LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true'
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040076
77# Initial Application Configuration
78applicationConfig:
79 app_preferences:
80 collectors:
81 - identifier: notification-id
82 mapping-files:
83 - defaultMappingFile-rcc-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list
84 xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd'
85 xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent'
86 keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&amp;time' to='date-and-time'
87 /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent'
88 beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event'
89 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event'
90 createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader'
91 /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields'
92 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader'
93 beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1</jb:expression><jb:expression
94 property='eventType'>'pnfRegistration'</jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1</jb:expression><jb:expression
95 property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1</jb:expression><jb:expression
96 property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION</jb:expression><jb:expression
97 property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value
98 property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec'
99 execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression
100 property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression
101 property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression
102 property='sourceName' execOnElement='vesevent'>pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber</jb:expression></jb:bean><jb:bean
103 class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields'
104 createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0</jb:expression><jb:value
105 property='serialNumber' data='pnfRegistration/serialNumber' /><jb:value property='lastServiceDate'
106 data='pnfRegistration/lastServiceDate' /><jb:value property='manufactureDate'
107 data='pnfRegistration/manufactureDate' /><jb:value property='modelNumber'
108 data='pnfRegistration/modelNumber' /><jb:value property='oamV4IpAddress' data='pnfRegistration/oamV4IpAddress'
109 /><jb:value property='oamV6IpAddress' data='pnfRegistration/oamV6IpAddress'
110 /><jb:value property='softwareVersion' data='pnfRegistration/softwareVersion'
111 /><jb:value property='unitFamily' data='pnfRegistration/unitFamily' /><jb:value
112 property='unitType' data='pnfRegistration/unitType' /><jb:value property='vendorName'
113 data='pnfRegistration/vendorName' /><jb:wiring property='additionalFields'
114 beanIdRef='alarmAdditionalInformation' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation'
115 beanId='alarmAdditionalInformation' createOnElement='vesevent'><jb:wiring
116 property='additionalProperties' beanIdRef='additionalFields2' /></jb:bean><jb:bean
117 beanId='additionalFields2' class='java.util.HashMap' createOnElement='vesevent/pnfRegistration/additionalFields'><jb:value
118 data='pnfRegistration/additionalFields/*'/></jb:bean></smooks-resource-list>"
119 stream_publisher: ves-pnfRegistration
120 stream_subscriber: rcc-notification
121 - identifier: notify OID
122 mapping-files:
123 - defaultMappingFile-snmp-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list
124 xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd'
125 xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent'
126 keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&amp;time' to='date-and-time'
127 /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent'
128 beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event'
129 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event'
130 createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader'
131 /><jb:wiring property='faultFields' beanIdRef='faultFields' /></jb:bean><jb:bean
132 class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader'
133 createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression
134 property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId'
135 execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression
136 property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression
137 property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value
138 property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec'
139 data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received'
140 /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression
141 property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields'
142 beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion'
143 data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition'
144 data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression
145 property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression
146 property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring
147 property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot'
148 /></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot'
149 createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation'
150 /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation'
151 beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value
152 property='name' data='#/varbind_oid' /><jb:value property='value' data='#/varbind_value'
153 /></jb:bean></smooks-resource-list>"
154 stream_publisher: ves-fault
155 stream_subscriber: snmp-notification
156 streams_publishes:
157 ves-fault:
158 dmaap_info:
159 topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT
160 type: message_router
161 ves-pnfRegistration:
162 dmaap_info:
163 topic_url: http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT
164 type: message_router
165 streams_subscribes:
166 rcc-notification:
167 dmaap_info:
168 topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT
169 type: message_router
170 snmp-notification:
171 dmaap_info:
172 topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP
173 type: message_router
174
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400175# Resource Limit Flavor -By Default Using Small
176flavor: small
177
178# Segregation for Different Environment (Small and Large)
179resources:
180 small:
181 limits:
182 cpu: 1
183 memory: 1Gi
184 requests:
185 cpu: 1
186 memory: 1Gi
187 large:
188 limits:
189 cpu: 2
190 memory: 2Gi
191 requests:
192 cpu: 2
193 memory: 2Gi
194 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200195
196#Pods Service Account
197serviceAccount:
198 nameOverride: dcae-ves-mapper
199 roles:
200 - read