5c888db79047891b19e627f94a98140b07d0c119
[oom.git] / kubernetes / dcaegen2-services / components / dcae-snmptrap-collector / values.yaml
1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 # Copyright (c) 2021 AT&T Intellectual Property. All rights reserved.
4 # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
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
25   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # Application Configuration Defaults.
36 #################################################################
37 # Application Image
38 image: onap/org.onap.dcaegen2.collectors.snmptrap:2.0.7
39 pullPolicy: Always
40
41 # Log directory where logging sidecar should look for log files
42 # if path is set to null sidecar won't be deployed in spite of
43 # global.centralizedLoggingEnabled setting.
44 log:
45   path: /opt/app/snmptrap/logs
46 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
47
48 # Dependencies
49 readinessCheck:
50   wait_for:
51   - message-router
52
53 # Probe Configuration
54 readiness:
55   type: exec
56   command:
57     - /opt/app/snmptrap/bin/snmptrapd.sh
58     - status
59
60 # service configuration
61 service:
62   type: NodePort
63   name: dcae-snmptrap-collector
64   ports:
65     - name: udp
66       port: 6162
67       l4_protocol: UDP  # default to TCP if not set
68       port_protocol: udp    #used in svn name
69       nodePort: 70
70       useNodePortExt: true
71
72 # Initial Application Configuration
73 applicationConfig:
74   StormWatchPolicy: ''
75   cache:
76     dns_cache_ttl_seconds: 60
77   services_calls: {}
78   snmptrapd:
79     version: '2.0.4'
80     title: ONAP SNMP Trap Receiver
81   sw_interval_in_seconds: 60
82   streams_publishes:
83     sec_fault_unsecure:
84       dmaap_info:
85         topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP
86       type: message_router
87       aaf_password: null
88       aaf_username: null
89   files:
90     runtime_base_dir: "/opt/app/snmptrap"
91     log_dir: logs
92     data_dir: data
93     pid_dir: tmp
94     arriving_traps_log: snmptrapd_arriving_traps.log
95     snmptrapd_diag: snmptrapd_prog_diag.log
96     traps_stats_log: snmptrapd_stats.csv
97     perm_status_file: snmptrapd_status.log
98     eelf_base_dir: "/opt/app/snmptrap/logs"
99     eelf_error: error.log
100     eelf_debug: debug.log
101     eelf_audit: audit.log
102     eelf_metrics: metrics.log
103     roll_frequency: hour
104     minimum_severity_to_log: 3
105   protocols:
106     transport: udp
107     ipv4_interface: 0.0.0.0
108     ipv4_port: 6162
109     ipv6_interface: "::1"
110     ipv6_port: 6162
111   publisher:
112     http_milliseconds_timeout: 1500
113     http_retries: 3
114     http_milliseconds_between_retries: 750
115     http_primary_publisher: 'true'
116     http_peer_publisher: unavailable
117     max_traps_between_publishes: 10
118     max_milliseconds_between_publishes: 10000
119
120 # Resource Limit Flavor -By Default Using Small
121 flavor: small
122
123 # Segregation for Different Environment (Small and Large)
124 resources:
125   small:
126     limits:
127       cpu: 1
128       memory: 1Gi
129     requests:
130       cpu: 1
131       memory: 1Gi
132   large:
133     limits:
134       cpu: 2
135       memory: 2Gi
136     requests:
137       cpu: 2
138       memory: 2Gi
139   unlimited: {}
140
141 #Pods Service Account
142 serviceAccount:
143   nameOverride: dcae-snmptrap-collector
144   roles:
145     - read