Merge "[AAI] Add model-loader tracing config"
[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.8
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     services:
52       - message-router
53
54 # Probe Configuration
55 readiness:
56   type: exec
57   command:
58     - /opt/app/snmptrap/bin/snmptrapd.sh
59     - status
60
61 # service configuration
62 service:
63   type: NodePort
64   name: dcae-snmptrap-collector
65   ports:
66     - name: udp
67       port: 6162
68       l4_protocol: UDP  # default to TCP if not set
69       port_protocol: udp    #used in svn name
70       nodePort: 70
71       useNodePortExt: true
72
73 serviceMesh:
74   authorizationPolicy:
75     authorizedPrincipals: []
76
77 # Initial Application Configuration
78 applicationConfig:
79   StormWatchPolicy: ''
80   cache:
81     dns_cache_ttl_seconds: 60
82   services_calls: {}
83   snmptrapd:
84     version: '2.0.8'
85     title: ONAP SNMP Trap Receiver
86   sw_interval_in_seconds: 60
87   streams_publishes:
88     sec_fault_unsecure:
89       dmaap_info:
90         topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP
91       type: message_router
92       aaf_password: ""
93       aaf_username: ""
94   files:
95     runtime_base_dir: "/opt/app/snmptrap"
96     log_dir: logs
97     data_dir: data
98     pid_dir: tmp
99     arriving_traps_log: snmptrapd_arriving_traps.log
100     snmptrapd_diag: snmptrapd_prog_diag.log
101     traps_stats_log: snmptrapd_stats.csv
102     perm_status_file: snmptrapd_status.log
103     eelf_base_dir: "/opt/app/snmptrap/logs"
104     eelf_error: error.log
105     eelf_debug: debug.log
106     eelf_audit: audit.log
107     eelf_metrics: metrics.log
108     roll_frequency: hour
109     minimum_severity_to_log: 3
110   protocols:
111     transport: udp
112     ipv4_interface: 0.0.0.0
113     ipv4_port: 6162
114     ipv6_interface: "::1"
115     ipv6_port: 6162
116   publisher:
117     http_milliseconds_timeout: 1500
118     http_retries: 3
119     http_milliseconds_between_retries: 750
120     http_primary_publisher: 'true'
121     http_peer_publisher: unavailable
122     max_traps_between_publishes: 10
123     max_milliseconds_between_publishes: 10000
124
125 # Resource Limit Flavor -By Default Using Small
126 flavor: small
127
128 # Segregation for Different Environment (Small and Large)
129 resources:
130   small:
131     limits:
132       cpu: "1"
133       memory: "1Gi"
134     requests:
135       cpu: "1"
136       memory: "1Gi"
137   large:
138     limits:
139       cpu: "2"
140       memory: "2Gi"
141     requests:
142       cpu: "2"
143       memory: "2Gi"
144   unlimited: {}
145
146 #Pods Service Account
147 serviceAccount:
148   nameOverride: dcae-snmptrap-collector
149   roles:
150     - read