Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
vv770d | 62d5378 | 2022-01-03 14:35:11 +0000 | [diff] [blame] | 3 | # Copyright (c) 2021-2022 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 | c269b26 | 2021-06-29 13:49:15 -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: false |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat Configuration Defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
| 34 | ################################################################# |
| 35 | # Secrets Configuration. |
| 36 | ################################################################# |
| 37 | secrets: |
| 38 | - uid: &controllerCredsUID controllercreds |
| 39 | type: basicAuth |
| 40 | login: '{{ .Values.controllerCreds.username }}' |
| 41 | password: '{{ .Values.controllerCreds.password }}' |
| 42 | passwordPolicy: required |
| 43 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 44 | ################################################################# |
| 45 | # Application Configuration Defaults. |
| 46 | ################################################################# |
| 47 | # Application Image |
Vijay Venkatesh Kumar | 0e73b02 | 2022-09-13 12:37:13 -0400 | [diff] [blame] | 48 | image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.3.4 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 49 | pullPolicy: Always |
| 50 | |
| 51 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 52 | # if path is set to null sidecar won't be deployed in spite of |
| 53 | # global.centralizedLoggingEnabled setting. |
| 54 | log: |
| 55 | path: null # /opt/app/restconfcollector/logs |
| 56 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 57 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 58 | # Dependencies |
| 59 | readinessCheck: |
| 60 | wait_for: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 61 | - message-router |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 62 | |
| 63 | # Probe Configuration |
| 64 | readiness: |
| 65 | initialDelaySeconds: 100 |
| 66 | periodSeconds: 60 |
| 67 | timeoutSeconds: 5 |
| 68 | path: /healthcheck |
| 69 | scheme: HTTP |
| 70 | port: 8080 |
| 71 | |
| 72 | |
| 73 | # service configuration |
| 74 | service: |
| 75 | type: NodePort |
| 76 | name: dcae-restconf-collector |
| 77 | ports: |
| 78 | - name: http |
| 79 | port: 8443 |
| 80 | plain_port: 8080 |
| 81 | port_protocol: http |
| 82 | nodePort: 16 |
| 83 | useNodePortExt: true |
| 84 | |
Andreas Geissler | 261763a | 2022-10-17 18:39:54 +0200 | [diff] [blame] | 85 | ingress: |
| 86 | enabled: false |
| 87 | service: |
| 88 | - baseaddr: "dcae-restconf-collector-api" |
| 89 | name: "dcae-restconf-collector" |
| 90 | port: 8443 |
| 91 | plain_port: 8080 |
| 92 | config: |
| 93 | ssl: "redirect" |
| 94 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 95 | # AAF Credentials |
| 96 | controllerCreds: |
| 97 | username: access |
| 98 | password: Huawei@123 |
| 99 | |
| 100 | credentials: |
| 101 | - name: CONTROLLER_USERNAME |
| 102 | uid: *controllerCredsUID |
| 103 | key: login |
| 104 | - name: CONTROLLER_PASSWORD |
| 105 | uid: *controllerCredsUID |
| 106 | key: password |
| 107 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 108 | # application environments |
| 109 | applicationEnv: |
| 110 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
| 111 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 112 | # Initial Application Configuration |
| 113 | applicationConfig: |
| 114 | collector.rcc.appDescription: DCAE RestConf Collector Application |
| 115 | collector.rcc.appName: dcae-rcc |
| 116 | collector.rcc.dmaap.streamid: notification=device-registration |
| 117 | collector.rcc.inputQueue.maxPending: '8096' |
| 118 | tomcat.maxthreads: '200' |
| 119 | collector.rcc.service.port: '8080' |
Andreas Geissler | b0841b8 | 2022-12-16 10:40:21 +0100 | [diff] [blame] | 120 | # Disabling of secure port not working (DCAEGEN2-3336) |
| 121 | collector.rcc.service.secure.port: '0' |
| 122 | #collector.rcc.service.secure.port: '8687' |
| 123 | #collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks |
| 124 | #collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass |
| 125 | #collector.rcc.keystore.alias: dynamically generated |
| 126 | #collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks |
| 127 | #collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 128 | #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks |
| 129 | #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass |
| 130 | collector.header.authflag: '0' |
| 131 | collector.header.authlist: sample1,c2FtcGxlMQ== |
| 132 | collector.rcc.service.secure.clientauth: '0' |
| 133 | streams_publishes: |
| 134 | device-registration: |
| 135 | dmaap_info: |
| 136 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 137 | type: message_router |
Vijay Venkatesh Kumar | 0e73b02 | 2022-09-13 12:37:13 -0400 | [diff] [blame] | 138 | rcc_policy: '[{"controller_name":"AccessM&C","controller_restapiUrl":"172.30.0.55:26335","controller_restapiUser":"${CONTROLLER_USERNAME}","controller_restapiPassword":"${CONTROLLER_PASSWORD}","controller_accessTokenUrl":"/rest/plat/smapp/v1/oauth/token","controller_accessTokenFile":"./etc/access-token.json","controller_accessTokenMethod":"put","controller_subsMethod":"post","controller_subscriptionUrl":"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription","controller_disableSsl":"true","event_details":[{"event_name":"ONT_registration","event_description":"ONTregistartionevent","event_sseventUrlEmbed":"true","event_sseventsField":"output.url","event_sseventsUrl":"null","event_subscriptionTemplate":"./etc/ont_registartion_subscription_template.json","event_unSubscriptionTemplate":"./etc/ont_registartion_unsubscription_template.json","event_ruleId":"12345678","modifyData":"true","modifyMethod": "modifyOntEvent","userData": "remote_id=AC9.0234.0337;svlan=100;cvlan=10;"}]}]' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 139 | |
| 140 | #applicationEnv: |
| 141 | # CONTROLLER_IP: "172.30.0.55" |
| 142 | # CONTROLLER_PORT: "26335" |
| 143 | |
| 144 | |
| 145 | # Resource Limit Flavor -By Default Using Small |
| 146 | flavor: small |
| 147 | |
| 148 | # Segregation for Different Environment (Small and Large) |
| 149 | resources: |
| 150 | small: |
| 151 | limits: |
| 152 | cpu: 1 |
| 153 | memory: 1Gi |
| 154 | requests: |
| 155 | cpu: 1 |
| 156 | memory: 1Gi |
| 157 | large: |
| 158 | limits: |
| 159 | cpu: 2 |
| 160 | memory: 2Gi |
| 161 | requests: |
| 162 | cpu: 2 |
| 163 | memory: 2Gi |
| 164 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 165 | |
| 166 | #Pods Service Account |
| 167 | serviceAccount: |
| 168 | nameOverride: dcae-restconf-collector |
| 169 | roles: |
| 170 | - read |