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 | c979732 | 2022-03-18 12:32:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2022 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 | |
| 34 | |
| 35 | ################################################################# |
| 36 | # InitContainer Images. |
| 37 | ################################################################# |
| 38 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 39 | |
| 40 | ################################################################# |
| 41 | # Application Configuration Defaults. |
| 42 | ################################################################# |
| 43 | # Application Image |
Vijay Venkatesh Kumar | 0f87688 | 2022-02-24 11:10:38 -0500 | [diff] [blame] | 44 | image: onap/org.onap.dcaegen2.collectors.snmptrap:2.0.6 |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 45 | pullPolicy: Always |
| 46 | |
| 47 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 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" . }}' |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 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 | |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 60 | |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 61 | # Dependencies |
| 62 | readinessCheck: |
| 63 | wait_for: |
Vijay Venkatesh Kumar | 41fc5a2 | 2022-03-08 16:28:05 -0500 | [diff] [blame] | 64 | - message-router |
Vijay Venkatesh Kumar | f1a226c | 2021-06-29 14:08:48 -0400 | [diff] [blame] | 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: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 153 | |
| 154 | #Pods Service Account |
| 155 | serviceAccount: |
| 156 | nameOverride: dcae-snmptrap-collector |
| 157 | roles: |
| 158 | - read |