25f0c3b7303249c98e6fb183b56ef4ba9ece04cc
[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 # ============================================================================
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
24   centralizedLoggingEnabled: true
25
26 #################################################################
27 # Filebeat Configuration Defaults.
28 #################################################################
29 filebeatConfig:
30   logstashServiceName: log-ls
31   logstashPort: 5044
32
33
34 #################################################################
35 # InitContainer Images.
36 #################################################################
37 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
38 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
39
40 #################################################################
41 # Application Configuration Defaults.
42 #################################################################
43 # Application Image
44 image: onap/org.onap.dcaegen2.collectors.snmptrap:2.0.6
45 pullPolicy: Always
46
47 # Log directory where logging sidecar should look for log files
48 # if path is set to null sidecar won't be deployed in spite of
49 # global.centralizedLoggingEnabled setting.
50 log:
51   path: /opt/app/snmptrap/logs
52 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
53
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.
58 tlsServer: true
59
60
61 # Dependencies
62 readinessCheck:
63   wait_for:
64   - message-router
65
66 # Probe Configuration
67 readiness:
68   type: exec
69   command:
70     - /opt/app/snmptrap/bin/snmptrapd.sh
71     - status
72
73 # service configuration
74 service:
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
86 applicationConfig:
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
134 flavor: small
135
136 # Segregation for Different Environment (Small and Large)
137 resources:
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: {}
153
154 #Pods Service Account
155 serviceAccount:
156   nameOverride: dcae-snmptrap-collector
157   roles:
158     - read