blob: 5340f35770b16042e015993862b0d43cee1e7c19 [file] [log] [blame]
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -04001# ================================ LICENSE_START =============================
2# ============================================================================
3# Copyright (c) 2021 AT&T Intellectual Property. All rights reserved.
Jack Lucasc9797322022-03-18 12:32:59 -04004# Copyright (c) 2022 J. F. Lucas. All rights reserved.
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -04005# ============================================================================
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#################################################################
22global:
23 nodePortPrefix: 302
24 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010025 centralizedLoggingEnabled: true
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040026
27#################################################################
28# Filebeat Configuration Defaults.
29#################################################################
30filebeatConfig:
31 logstashServiceName: log-ls
32 logstashPort: 5044
33
34
35#################################################################
36# InitContainer Images.
37#################################################################
38tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040039
40#################################################################
41# Application Configuration Defaults.
42#################################################################
43# Application Image
Vijay Venkatesh Kumar0e73b022022-09-13 12:37:13 -040044image: onap/org.onap.dcaegen2.collectors.snmptrap:2.0.7
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040045pullPolicy: Always
46
47# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010048# if path is set to null sidecar won't be deployed in spite of
49# global.centralizedLoggingEnabled setting.
50log:
51 path: /opt/app/snmptrap/logs
52logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040053
54
55# TLS role -- set to true if microservice acts as server
56# If true, an init container will retrieve a server cert
57# and key from AAF and mount them in certDirectory.
rope2525a7fbee2022-07-25 20:00:36 +010058tlsServer: false
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040059
Vijay Venkatesh Kumar41fc5a22022-03-08 16:28:05 -050060
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040061# Dependencies
62readinessCheck:
63 wait_for:
Vijay Venkatesh Kumar41fc5a22022-03-08 16:28:05 -050064 - message-router
Vijay Venkatesh Kumarf1a226c2021-06-29 14:08:48 -040065
66# Probe Configuration
67readiness:
68 type: exec
69 command:
70 - /opt/app/snmptrap/bin/snmptrapd.sh
71 - status
72
73# service configuration
74service:
75 type: NodePort
76 name: dcae-snmptrap-collector
77 ports:
78 - name: udp
79 port: 6162
80 l4_protocol: UDP # default to TCP if not set
81 port_protocol: udp #used in svn name
82 nodePort: 70
83 useNodePortExt: true
84
85# Initial Application Configuration
86applicationConfig:
87 StormWatchPolicy: ''
88 cache:
89 dns_cache_ttl_seconds: 60
90 services_calls: {}
91 snmptrapd:
92 version: '2.0.4'
93 title: ONAP SNMP Trap Receiver
94 sw_interval_in_seconds: 60
95 streams_publishes:
96 sec_fault_unsecure:
97 dmaap_info:
98 topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP
99 type: message_router
100 aaf_password: null
101 aaf_username: null
102 files:
103 runtime_base_dir: "/opt/app/snmptrap"
104 log_dir: logs
105 data_dir: data
106 pid_dir: tmp
107 arriving_traps_log: snmptrapd_arriving_traps.log
108 snmptrapd_diag: snmptrapd_prog_diag.log
109 traps_stats_log: snmptrapd_stats.csv
110 perm_status_file: snmptrapd_status.log
111 eelf_base_dir: "/opt/app/snmptrap/logs"
112 eelf_error: error.log
113 eelf_debug: debug.log
114 eelf_audit: audit.log
115 eelf_metrics: metrics.log
116 roll_frequency: hour
117 minimum_severity_to_log: 3
118 protocols:
119 transport: udp
120 ipv4_interface: 0.0.0.0
121 ipv4_port: 6162
122 ipv6_interface: "::1"
123 ipv6_port: 6162
124 publisher:
125 http_milliseconds_timeout: 1500
126 http_retries: 3
127 http_milliseconds_between_retries: 750
128 http_primary_publisher: 'true'
129 http_peer_publisher: unavailable
130 max_traps_between_publishes: 10
131 max_milliseconds_between_publishes: 10000
132
133# Resource Limit Flavor -By Default Using Small
134flavor: small
135
136# Segregation for Different Environment (Small and Large)
137resources:
138 small:
139 limits:
140 cpu: 1
141 memory: 1Gi
142 requests:
143 cpu: 1
144 memory: 1Gi
145 large:
146 limits:
147 cpu: 2
148 memory: 2Gi
149 requests:
150 cpu: 2
151 memory: 2Gi
152 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200153
154#Pods Service Account
155serviceAccount:
156 nameOverride: dcae-snmptrap-collector
157 roles:
158 - read