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