Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
| 3 | # Copyright (c) 2021 AT&T Intellectual Property. All rights reserved. |
| 4 | # ============================================================================ |
| 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 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefix: 302 |
| 23 | nodePortPrefixExt: 304 |
| 24 | |
| 25 | ################################################################# |
| 26 | # Filebeat Configuration Defaults. |
| 27 | ################################################################# |
| 28 | filebeatConfig: |
| 29 | logstashServiceName: log-ls |
| 30 | logstashPort: 5044 |
| 31 | |
| 32 | ################################################################# |
| 33 | # InitContainer Images. |
| 34 | ################################################################# |
| 35 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Jack Lucas | d263e69 | 2021-08-16 16:02:23 -0400 | [diff] [blame] | 36 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 37 | |
| 38 | ################################################################# |
| 39 | # Application Configuration Defaults. |
| 40 | ################################################################# |
| 41 | # Application Image |
| 42 | image: onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.2.0 |
| 43 | pullPolicy: Always |
| 44 | |
| 45 | # Log directory where logging sidecar should look for log files |
| 46 | # if absent, no sidecar will be deployed |
| 47 | logDirectory: /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 |
| 59 | readinessCheck: |
| 60 | wait_for: |
| 61 | - dcae-config-binding-service |
| 62 | - aaf-cm |
| 63 | |
| 64 | # Service Configuration |
| 65 | service: |
| 66 | type: ClusterIP |
| 67 | name: dcae-ves-mapper |
| 68 | ports: |
| 69 | - name: http |
| 70 | port: 80 |
| 71 | port_protocol: http |
| 72 | |
| 73 | |
| 74 | # Initial Application Configuration |
| 75 | applicationConfig: |
| 76 | app_preferences: |
| 77 | collectors: |
| 78 | - identifier: notification-id |
| 79 | mapping-files: |
| 80 | - defaultMappingFile-rcc-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 81 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 82 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 83 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 84 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' |
| 85 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 86 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' |
| 87 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 88 | /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' |
| 89 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' |
| 90 | beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1</jb:expression><jb:expression |
| 91 | property='eventType'>'pnfRegistration'</jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1</jb:expression><jb:expression |
| 92 | property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1</jb:expression><jb:expression |
| 93 | property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION</jb:expression><jb:expression |
| 94 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 95 | property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' |
| 96 | execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 97 | property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 98 | property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 99 | property='sourceName' execOnElement='vesevent'>pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber</jb:expression></jb:bean><jb:bean |
| 100 | class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' |
| 101 | createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0</jb:expression><jb:value |
| 102 | property='serialNumber' data='pnfRegistration/serialNumber' /><jb:value property='lastServiceDate' |
| 103 | data='pnfRegistration/lastServiceDate' /><jb:value property='manufactureDate' |
| 104 | data='pnfRegistration/manufactureDate' /><jb:value property='modelNumber' |
| 105 | data='pnfRegistration/modelNumber' /><jb:value property='oamV4IpAddress' data='pnfRegistration/oamV4IpAddress' |
| 106 | /><jb:value property='oamV6IpAddress' data='pnfRegistration/oamV6IpAddress' |
| 107 | /><jb:value property='softwareVersion' data='pnfRegistration/softwareVersion' |
| 108 | /><jb:value property='unitFamily' data='pnfRegistration/unitFamily' /><jb:value |
| 109 | property='unitType' data='pnfRegistration/unitType' /><jb:value property='vendorName' |
| 110 | data='pnfRegistration/vendorName' /><jb:wiring property='additionalFields' |
| 111 | beanIdRef='alarmAdditionalInformation' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation' |
| 112 | beanId='alarmAdditionalInformation' createOnElement='vesevent'><jb:wiring |
| 113 | property='additionalProperties' beanIdRef='additionalFields2' /></jb:bean><jb:bean |
| 114 | beanId='additionalFields2' class='java.util.HashMap' createOnElement='vesevent/pnfRegistration/additionalFields'><jb:value |
| 115 | data='pnfRegistration/additionalFields/*'/></jb:bean></smooks-resource-list>" |
| 116 | stream_publisher: ves-pnfRegistration |
| 117 | stream_subscriber: rcc-notification |
| 118 | - identifier: notify OID |
| 119 | mapping-files: |
| 120 | - defaultMappingFile-snmp-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 121 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 122 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 123 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 124 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent' |
| 125 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 126 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event' |
| 127 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 128 | /><jb:wiring property='faultFields' beanIdRef='faultFields' /></jb:bean><jb:bean |
| 129 | class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader' |
| 130 | createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression |
| 131 | property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId' |
| 132 | execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression |
| 133 | property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression |
| 134 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 135 | property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec' |
| 136 | data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received' |
| 137 | /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 138 | property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields' |
| 139 | beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion' |
| 140 | data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition' |
| 141 | data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression |
| 142 | property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression |
| 143 | property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring |
| 144 | property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot' |
| 145 | /></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot' |
| 146 | createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation' |
| 147 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation' |
| 148 | beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value |
| 149 | property='name' data='#/varbind_oid' /><jb:value property='value' data='#/varbind_value' |
| 150 | /></jb:bean></smooks-resource-list>" |
| 151 | stream_publisher: ves-fault |
| 152 | stream_subscriber: snmp-notification |
| 153 | streams_publishes: |
| 154 | ves-fault: |
| 155 | dmaap_info: |
| 156 | topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT |
| 157 | type: message_router |
| 158 | ves-pnfRegistration: |
| 159 | dmaap_info: |
| 160 | topic_url: http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT |
| 161 | type: message_router |
| 162 | streams_subscribes: |
| 163 | rcc-notification: |
| 164 | dmaap_info: |
| 165 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 166 | type: message_router |
| 167 | snmp-notification: |
| 168 | dmaap_info: |
| 169 | topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP |
| 170 | type: message_router |
| 171 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 172 | # Resource Limit Flavor -By Default Using Small |
| 173 | flavor: small |
| 174 | |
| 175 | # Segregation for Different Environment (Small and Large) |
| 176 | resources: |
| 177 | small: |
| 178 | limits: |
| 179 | cpu: 1 |
| 180 | memory: 1Gi |
| 181 | requests: |
| 182 | cpu: 1 |
| 183 | memory: 1Gi |
| 184 | large: |
| 185 | limits: |
| 186 | cpu: 2 |
| 187 | memory: 2Gi |
| 188 | requests: |
| 189 | cpu: 2 |
| 190 | memory: 2Gi |
| 191 | unlimited: {} |