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 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 63 | serviceMesh: |
| 64 | authorizationPolicy: |
| 65 | authorizedPrincipals: |
| 66 | - serviceAccount: message-router-read |
| 67 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 68 | # application environments |
| 69 | applicationEnv: |
| 70 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 71 | 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 Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 74 | |
| 75 | # Initial Application Configuration |
| 76 | applicationConfig: |
| 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&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&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 Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 173 | # Resource Limit Flavor -By Default Using Small |
| 174 | flavor: small |
| 175 | |
| 176 | # Segregation for Different Environment (Small and Large) |
| 177 | resources: |
| 178 | small: |
| 179 | limits: |
| 180 | cpu: 1 |
| 181 | memory: 1Gi |
| 182 | requests: |
| 183 | cpu: 1 |
| 184 | memory: 1Gi |
| 185 | large: |
| 186 | limits: |
| 187 | cpu: 2 |
| 188 | memory: 2Gi |
| 189 | requests: |
| 190 | cpu: 2 |
| 191 | memory: 2Gi |
| 192 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 193 | |
| 194 | #Pods Service Account |
| 195 | serviceAccount: |
| 196 | nameOverride: dcae-ves-mapper |
| 197 | roles: |
| 198 | - read |