Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
| 3 | # Copyright (c) 2021 AT&T Intellectual Property. All rights reserved. |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 4 | # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved. |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 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 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 25 | centralizedLoggingEnabled: true |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat Configuration Defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 34 | ################################################################# |
| 35 | # Application Configuration Defaults. |
| 36 | ################################################################# |
| 37 | # Application Image |
Vijay Venkatesh Kumar | 0e73b02 | 2022-09-13 12:37:13 -0400 | [diff] [blame] | 38 | image: onap/org.onap.dcaegen2.collectors.snmptrap:2.0.7 |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 39 | pullPolicy: Always |
| 40 | |
| 41 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 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" . }}' |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 47 | |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 48 | # Dependencies |
| 49 | readinessCheck: |
| 50 | wait_for: |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 51 | - message-router |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 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 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 72 | serviceMesh: |
| 73 | authorizationPolicy: |
| 74 | authorizedPrincipals: [] |
| 75 | |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 76 | # Initial Application Configuration |
| 77 | applicationConfig: |
| 78 | StormWatchPolicy: '' |
| 79 | cache: |
| 80 | dns_cache_ttl_seconds: 60 |
| 81 | services_calls: {} |
| 82 | snmptrapd: |
| 83 | version: '2.0.4' |
| 84 | title: ONAP SNMP Trap Receiver |
| 85 | sw_interval_in_seconds: 60 |
| 86 | streams_publishes: |
| 87 | sec_fault_unsecure: |
| 88 | dmaap_info: |
| 89 | topic_url: http://message-router:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP |
| 90 | type: message_router |
| 91 | aaf_password: null |
| 92 | aaf_username: null |
| 93 | files: |
| 94 | runtime_base_dir: "/opt/app/snmptrap" |
| 95 | log_dir: logs |
| 96 | data_dir: data |
| 97 | pid_dir: tmp |
| 98 | arriving_traps_log: snmptrapd_arriving_traps.log |
| 99 | snmptrapd_diag: snmptrapd_prog_diag.log |
| 100 | traps_stats_log: snmptrapd_stats.csv |
| 101 | perm_status_file: snmptrapd_status.log |
| 102 | eelf_base_dir: "/opt/app/snmptrap/logs" |
| 103 | eelf_error: error.log |
| 104 | eelf_debug: debug.log |
| 105 | eelf_audit: audit.log |
| 106 | eelf_metrics: metrics.log |
| 107 | roll_frequency: hour |
| 108 | minimum_severity_to_log: 3 |
| 109 | protocols: |
| 110 | transport: udp |
| 111 | ipv4_interface: 0.0.0.0 |
| 112 | ipv4_port: 6162 |
| 113 | ipv6_interface: "::1" |
| 114 | ipv6_port: 6162 |
| 115 | publisher: |
| 116 | http_milliseconds_timeout: 1500 |
| 117 | http_retries: 3 |
| 118 | http_milliseconds_between_retries: 750 |
| 119 | http_primary_publisher: 'true' |
| 120 | http_peer_publisher: unavailable |
| 121 | max_traps_between_publishes: 10 |
| 122 | max_milliseconds_between_publishes: 10000 |
| 123 | |
| 124 | # Resource Limit Flavor -By Default Using Small |
| 125 | flavor: small |
| 126 | |
| 127 | # Segregation for Different Environment (Small and Large) |
| 128 | resources: |
| 129 | small: |
| 130 | limits: |
| 131 | cpu: 1 |
| 132 | memory: 1Gi |
| 133 | requests: |
| 134 | cpu: 1 |
| 135 | memory: 1Gi |
| 136 | large: |
| 137 | limits: |
| 138 | cpu: 2 |
| 139 | memory: 2Gi |
| 140 | requests: |
| 141 | cpu: 2 |
| 142 | memory: 2Gi |
| 143 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 144 | |
| 145 | #Pods Service Account |
| 146 | serviceAccount: |
| 147 | nameOverride: dcae-snmptrap-collector |
| 148 | roles: |
| 149 | - read |