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