Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
vv770d | 62d5378 | 2022-01-03 14:35:11 +0000 | [diff] [blame] | 3 | # Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved. |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 4 | # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved. |
sushant53 | d52162b | 2023-04-13 12:38:46 +0530 | [diff] [blame] | 5 | # Copyright (c) 2023 Deutsche Telekom AG. All rights reserved. |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 6 | # ============================================================================ |
| 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 | ################################################################# |
| 23 | global: |
| 24 | nodePortPrefix: 302 |
| 25 | nodePortPrefixExt: 304 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 26 | centralizedLoggingEnabled: true |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 27 | |
| 28 | ################################################################# |
| 29 | # Filebeat Configuration Defaults. |
| 30 | ################################################################# |
| 31 | filebeatConfig: |
| 32 | logstashServiceName: log-ls |
| 33 | logstashPort: 5044 |
| 34 | |
| 35 | ################################################################# |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 36 | # Application Configuration Defaults. |
| 37 | ################################################################# |
| 38 | # Application Image |
sushant53 | d52162b | 2023-04-13 12:38:46 +0530 | [diff] [blame] | 39 | image: onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.5.0 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 40 | pullPolicy: Always |
| 41 | |
| 42 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 43 | # if path is set to null sidecar won't be deployed in spite of |
| 44 | # global.centralizedLoggingEnabled setting. |
| 45 | log: |
| 46 | path: /opt/app/VESAdapter/logs |
| 47 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 48 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 49 | # Dependencies |
| 50 | readinessCheck: |
| 51 | wait_for: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 52 | - message-router |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 53 | |
| 54 | # Service Configuration |
| 55 | service: |
| 56 | type: ClusterIP |
| 57 | name: dcae-ves-mapper |
| 58 | ports: |
| 59 | - name: http |
| 60 | port: 80 |
| 61 | port_protocol: http |
| 62 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 63 | # application environments |
| 64 | applicationEnv: |
| 65 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 66 | CONFIG_BINDING_SERVICE_SERVICE_PORT: '10000' # Workaround until DCAEGEN2-3098 is addressed |
| 67 | CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml' |
| 68 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 69 | |
| 70 | # Initial Application Configuration |
| 71 | applicationConfig: |
| 72 | app_preferences: |
| 73 | collectors: |
| 74 | - identifier: notification-id |
| 75 | mapping-files: |
| 76 | - defaultMappingFile-rcc-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 77 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 78 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 79 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 80 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' |
| 81 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 82 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' |
| 83 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 84 | /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' |
| 85 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' |
| 86 | beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1</jb:expression><jb:expression |
| 87 | property='eventType'>'pnfRegistration'</jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1</jb:expression><jb:expression |
| 88 | property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1</jb:expression><jb:expression |
| 89 | property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION</jb:expression><jb:expression |
| 90 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 91 | property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' |
| 92 | execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 93 | property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 94 | property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 95 | property='sourceName' execOnElement='vesevent'>pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber</jb:expression></jb:bean><jb:bean |
| 96 | class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' |
| 97 | createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0</jb:expression><jb:value |
| 98 | property='serialNumber' data='pnfRegistration/serialNumber' /><jb:value property='lastServiceDate' |
| 99 | data='pnfRegistration/lastServiceDate' /><jb:value property='manufactureDate' |
| 100 | data='pnfRegistration/manufactureDate' /><jb:value property='modelNumber' |
| 101 | data='pnfRegistration/modelNumber' /><jb:value property='oamV4IpAddress' data='pnfRegistration/oamV4IpAddress' |
| 102 | /><jb:value property='oamV6IpAddress' data='pnfRegistration/oamV6IpAddress' |
| 103 | /><jb:value property='softwareVersion' data='pnfRegistration/softwareVersion' |
| 104 | /><jb:value property='unitFamily' data='pnfRegistration/unitFamily' /><jb:value |
| 105 | property='unitType' data='pnfRegistration/unitType' /><jb:value property='vendorName' |
| 106 | data='pnfRegistration/vendorName' /><jb:wiring property='additionalFields' |
| 107 | beanIdRef='alarmAdditionalInformation' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation' |
| 108 | beanId='alarmAdditionalInformation' createOnElement='vesevent'><jb:wiring |
| 109 | property='additionalProperties' beanIdRef='additionalFields2' /></jb:bean><jb:bean |
| 110 | beanId='additionalFields2' class='java.util.HashMap' createOnElement='vesevent/pnfRegistration/additionalFields'><jb:value |
| 111 | data='pnfRegistration/additionalFields/*'/></jb:bean></smooks-resource-list>" |
| 112 | stream_publisher: ves-pnfRegistration |
| 113 | stream_subscriber: rcc-notification |
| 114 | - identifier: notify OID |
| 115 | mapping-files: |
| 116 | - defaultMappingFile-snmp-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 117 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 118 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 119 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 120 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent' |
| 121 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 122 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event' |
| 123 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 124 | /><jb:wiring property='faultFields' beanIdRef='faultFields' /></jb:bean><jb:bean |
| 125 | class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader' |
| 126 | createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression |
| 127 | property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId' |
| 128 | execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression |
| 129 | property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression |
| 130 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 131 | property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec' |
| 132 | data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received' |
| 133 | /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 134 | property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields' |
| 135 | beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion' |
| 136 | data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition' |
| 137 | data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression |
| 138 | property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression |
| 139 | property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring |
| 140 | property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot' |
| 141 | /></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot' |
| 142 | createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation' |
| 143 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation' |
| 144 | beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value |
| 145 | property='name' data='#/varbind_oid' /><jb:value property='value' data='#/varbind_value' |
| 146 | /></jb:bean></smooks-resource-list>" |
| 147 | stream_publisher: ves-fault |
| 148 | stream_subscriber: snmp-notification |
| 149 | streams_publishes: |
| 150 | ves-fault: |
| 151 | dmaap_info: |
| 152 | topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT |
| 153 | type: message_router |
| 154 | ves-pnfRegistration: |
| 155 | dmaap_info: |
| 156 | topic_url: http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT |
| 157 | type: message_router |
| 158 | streams_subscribes: |
| 159 | rcc-notification: |
| 160 | dmaap_info: |
| 161 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 162 | type: message_router |
| 163 | snmp-notification: |
| 164 | dmaap_info: |
| 165 | topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP |
| 166 | type: message_router |
| 167 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 168 | # Resource Limit Flavor -By Default Using Small |
| 169 | flavor: small |
| 170 | |
| 171 | # Segregation for Different Environment (Small and Large) |
| 172 | resources: |
| 173 | small: |
| 174 | limits: |
| 175 | cpu: 1 |
| 176 | memory: 1Gi |
| 177 | requests: |
| 178 | cpu: 1 |
| 179 | memory: 1Gi |
| 180 | large: |
| 181 | limits: |
| 182 | cpu: 2 |
| 183 | memory: 2Gi |
| 184 | requests: |
| 185 | cpu: 2 |
| 186 | memory: 2Gi |
| 187 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 188 | |
| 189 | #Pods Service Account |
| 190 | serviceAccount: |
| 191 | nameOverride: dcae-ves-mapper |
| 192 | roles: |
| 193 | - read |