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 | c979732 | 2022-03-18 12:32:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2022 J. F. Lucas. All rights reserved. |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 5 | # ============================================================================ |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ================================= LICENSE_END ============================== |
| 18 | |
| 19 | ################################################################# |
| 20 | # Global Configuration Defaults. |
| 21 | ################################################################# |
| 22 | global: |
| 23 | nodePortPrefix: 302 |
| 24 | nodePortPrefixExt: 304 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 25 | centralizedLoggingEnabled: true |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat Configuration Defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
| 34 | ################################################################# |
| 35 | # InitContainer Images. |
| 36 | ################################################################# |
| 37 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 38 | |
| 39 | ################################################################# |
| 40 | # Application Configuration Defaults. |
| 41 | ################################################################# |
| 42 | # Application Image |
Vijay Venkatesh Kumar | fb29cc5 | 2022-03-29 17:50:03 -0400 | [diff] [blame^] | 43 | image: onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.4.0 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 44 | pullPolicy: Always |
| 45 | |
| 46 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 47 | # if path is set to null sidecar won't be deployed in spite of |
| 48 | # global.centralizedLoggingEnabled setting. |
| 49 | log: |
| 50 | path: /opt/app/VESAdapter/logs |
| 51 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 52 | |
| 53 | # Directory where TLS certs should be stored |
| 54 | # if absent, no certs will be retrieved and stored |
| 55 | #certDirectory: /opt/app/ves-mapper/etc/certs |
| 56 | |
| 57 | # TLS role -- set to true if microservice acts as server |
| 58 | # If true, an init container will retrieve a server cert |
| 59 | # and key from AAF and mount them in certDirectory. |
| 60 | #tlsServer: true |
| 61 | |
| 62 | # Dependencies |
| 63 | readinessCheck: |
| 64 | wait_for: |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 65 | - aaf-cm |
| 66 | |
| 67 | # Service Configuration |
| 68 | service: |
| 69 | type: ClusterIP |
| 70 | name: dcae-ves-mapper |
| 71 | ports: |
| 72 | - name: http |
| 73 | port: 80 |
| 74 | port_protocol: http |
| 75 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 76 | # application environments |
| 77 | applicationEnv: |
| 78 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 79 | CONFIG_BINDING_SERVICE_SERVICE_PORT: '10000' # Workaround until DCAEGEN2-3098 is addressed |
| 80 | CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml' |
| 81 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 82 | |
| 83 | # Initial Application Configuration |
| 84 | applicationConfig: |
| 85 | app_preferences: |
| 86 | collectors: |
| 87 | - identifier: notification-id |
| 88 | mapping-files: |
| 89 | - defaultMappingFile-rcc-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 90 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 91 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 92 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 93 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' |
| 94 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 95 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' |
| 96 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 97 | /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' |
| 98 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' |
| 99 | beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1</jb:expression><jb:expression |
| 100 | property='eventType'>'pnfRegistration'</jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1</jb:expression><jb:expression |
| 101 | property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1</jb:expression><jb:expression |
| 102 | property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION</jb:expression><jb:expression |
| 103 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 104 | property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' |
| 105 | execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 106 | property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1</jb:expression><jb:expression |
| 107 | property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 108 | property='sourceName' execOnElement='vesevent'>pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber</jb:expression></jb:bean><jb:bean |
| 109 | class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' |
| 110 | createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0</jb:expression><jb:value |
| 111 | property='serialNumber' data='pnfRegistration/serialNumber' /><jb:value property='lastServiceDate' |
| 112 | data='pnfRegistration/lastServiceDate' /><jb:value property='manufactureDate' |
| 113 | data='pnfRegistration/manufactureDate' /><jb:value property='modelNumber' |
| 114 | data='pnfRegistration/modelNumber' /><jb:value property='oamV4IpAddress' data='pnfRegistration/oamV4IpAddress' |
| 115 | /><jb:value property='oamV6IpAddress' data='pnfRegistration/oamV6IpAddress' |
| 116 | /><jb:value property='softwareVersion' data='pnfRegistration/softwareVersion' |
| 117 | /><jb:value property='unitFamily' data='pnfRegistration/unitFamily' /><jb:value |
| 118 | property='unitType' data='pnfRegistration/unitType' /><jb:value property='vendorName' |
| 119 | data='pnfRegistration/vendorName' /><jb:wiring property='additionalFields' |
| 120 | beanIdRef='alarmAdditionalInformation' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation' |
| 121 | beanId='alarmAdditionalInformation' createOnElement='vesevent'><jb:wiring |
| 122 | property='additionalProperties' beanIdRef='additionalFields2' /></jb:bean><jb:bean |
| 123 | beanId='additionalFields2' class='java.util.HashMap' createOnElement='vesevent/pnfRegistration/additionalFields'><jb:value |
| 124 | data='pnfRegistration/additionalFields/*'/></jb:bean></smooks-resource-list>" |
| 125 | stream_publisher: ves-pnfRegistration |
| 126 | stream_subscriber: rcc-notification |
| 127 | - identifier: notify OID |
| 128 | mapping-files: |
| 129 | - defaultMappingFile-snmp-notification: "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list |
| 130 | xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' |
| 131 | xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' |
| 132 | keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' |
| 133 | /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent' |
| 134 | beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' |
| 135 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event' |
| 136 | createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' |
| 137 | /><jb:wiring property='faultFields' beanIdRef='faultFields' /></jb:bean><jb:bean |
| 138 | class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader' |
| 139 | createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression |
| 140 | property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId' |
| 141 | execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression |
| 142 | property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression |
| 143 | property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value |
| 144 | property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec' |
| 145 | data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received' |
| 146 | /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression |
| 147 | property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields' |
| 148 | beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion' |
| 149 | data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition' |
| 150 | data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression |
| 151 | property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression |
| 152 | property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring |
| 153 | property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot' |
| 154 | /></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot' |
| 155 | createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation' |
| 156 | /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation' |
| 157 | beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value |
| 158 | property='name' data='#/varbind_oid' /><jb:value property='value' data='#/varbind_value' |
| 159 | /></jb:bean></smooks-resource-list>" |
| 160 | stream_publisher: ves-fault |
| 161 | stream_subscriber: snmp-notification |
| 162 | streams_publishes: |
| 163 | ves-fault: |
| 164 | dmaap_info: |
| 165 | topic_url: http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT |
| 166 | type: message_router |
| 167 | ves-pnfRegistration: |
| 168 | dmaap_info: |
| 169 | topic_url: http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT |
| 170 | type: message_router |
| 171 | streams_subscribes: |
| 172 | rcc-notification: |
| 173 | dmaap_info: |
| 174 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 175 | type: message_router |
| 176 | snmp-notification: |
| 177 | dmaap_info: |
| 178 | topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP |
| 179 | type: message_router |
| 180 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 181 | # Resource Limit Flavor -By Default Using Small |
| 182 | flavor: small |
| 183 | |
| 184 | # Segregation for Different Environment (Small and Large) |
| 185 | resources: |
| 186 | small: |
| 187 | limits: |
| 188 | cpu: 1 |
| 189 | memory: 1Gi |
| 190 | requests: |
| 191 | cpu: 1 |
| 192 | memory: 1Gi |
| 193 | large: |
| 194 | limits: |
| 195 | cpu: 2 |
| 196 | memory: 2Gi |
| 197 | requests: |
| 198 | cpu: 2 |
| 199 | memory: 2Gi |
| 200 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 201 | |
| 202 | #Pods Service Account |
| 203 | serviceAccount: |
| 204 | nameOverride: dcae-ves-mapper |
| 205 | roles: |
| 206 | - read |