1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 # Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved.
4 # Copyright (c) 2022 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
10 # http://www.apache.org/licenses/LICENSE-2.0
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 ==============================
19 #################################################################
20 # Global Configuration Defaults.
21 #################################################################
24 nodePortPrefixExt: 304
25 centralizedLoggingEnabled: false
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
31 logstashServiceName: log-ls
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
38 - uid: &controllerCredsUID controllercreds
40 login: '{{ .Values.controllerCreds.username }}'
41 password: '{{ .Values.controllerCreds.password }}'
42 passwordPolicy: required
45 #################################################################
46 # InitContainer Images.
47 #################################################################
48 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
50 #################################################################
51 # Application Configuration Defaults.
52 #################################################################
54 image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.3.2
57 # Log directory where logging sidecar should look for log files
58 # if path is set to null sidecar won't be deployed in spite of
59 # global.centralizedLoggingEnabled setting.
61 path: null # /opt/app/restconfcollector/logs
62 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
64 # Directory where TLS certs should be stored
65 # if absent, no certs will be retrieved and stored
66 certDirectory: /opt/app/dcae-certificate
68 # TLS role -- set to true if microservice acts as server
69 # If true, an init container will retrieve a server cert
70 # and key from AAF and mount them in certDirectory.
80 initialDelaySeconds: 100
88 # service configuration
91 name: dcae-restconf-collector
106 - name: CONTROLLER_USERNAME
107 uid: *controllerCredsUID
109 - name: CONTROLLER_PASSWORD
110 uid: *controllerCredsUID
113 # application environments
115 LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true'
117 # Initial Application Configuration
119 collector.rcc.appDescription: DCAE RestConf Collector Application
120 collector.rcc.appName: dcae-rcc
121 collector.rcc.dmaap.streamid: notification=device-registration
122 collector.rcc.inputQueue.maxPending: '8096'
123 tomcat.maxthreads: '200'
124 collector.rcc.service.port: '8080'
125 collector.rcc.service.secure.port: '8687'
126 collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks
127 collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass
128 collector.rcc.keystore.alias: dynamically generated
129 collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks
130 collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass
131 #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks
132 #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass
133 collector.header.authflag: '0'
134 collector.header.authlist: sample1,c2FtcGxlMQ==
135 collector.rcc.service.secure.clientauth: '0'
139 topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT
141 #rcc_policy: '[{"controller_name":"AccessM&C","controller_restapiUrl":"${CONTROLLER_IP}:{CONTROLLER_PORT}","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;"}]}]'
142 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;"}]}]'
145 # CONTROLLER_IP: "172.30.0.55"
146 # CONTROLLER_PORT: "26335"
149 # Resource Limit Flavor -By Default Using Small
152 # Segregation for Different Environment (Small and Large)
170 #Pods Service Account
172 nameOverride: dcae-restconf-collector