blob: 543b79b9c0c193d100462de02db4e4d709d4f727 [file] [log] [blame]
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -04001# ================================ LICENSE_START =============================
2# ============================================================================
vv770d62d53782022-01-03 14:35:11 +00003# Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved.
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -04004# ============================================================================
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#################################################################
21global:
22 nodePortPrefix: 302
23 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010024 centralizedLoggingEnabled: false
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040025
26#################################################################
27# Filebeat Configuration Defaults.
28#################################################################
29filebeatConfig:
30 logstashServiceName: log-ls
31 logstashPort: 5044
32
33#################################################################
34# Secrets Configuration.
35#################################################################
36secrets:
37 - uid: &controllerCredsUID controllercreds
38 type: basicAuth
39 login: '{{ .Values.controllerCreds.username }}'
40 password: '{{ .Values.controllerCreds.password }}'
41 passwordPolicy: required
42
43
44#################################################################
45# InitContainer Images.
46#################################################################
47tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040048consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040049
50#################################################################
51# Application Configuration Defaults.
52#################################################################
53# Application Image
vv770d5cc95402022-01-21 14:56:33 +000054image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.7
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040055pullPolicy: Always
56
57# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010058# if path is set to null sidecar won't be deployed in spite of
59# global.centralizedLoggingEnabled setting.
60log:
61 path: null # /opt/app/restconfcollector/logs
62logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -040063
64# Directory where TLS certs should be stored
65# if absent, no certs will be retrieved and stored
66certDirectory: /opt/app/dcae-certificate
67
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.
71tlsServer: true
72
73# Dependencies
74readinessCheck:
75 wait_for:
76 - dcae-config-binding-service
77 - aaf-cm
78
79# Probe Configuration
80readiness:
81 initialDelaySeconds: 100
82 periodSeconds: 60
83 timeoutSeconds: 5
84 path: /healthcheck
85 scheme: HTTP
86 port: 8080
87
88
89# service configuration
90service:
91 type: NodePort
92 name: dcae-restconf-collector
93 ports:
94 - name: http
95 port: 8443
96 plain_port: 8080
97 port_protocol: http
98 nodePort: 16
99 useNodePortExt: true
100
101# AAF Credentials
102controllerCreds:
103 username: access
104 password: Huawei@123
105
106credentials:
107- name: CONTROLLER_USERNAME
108 uid: *controllerCredsUID
109 key: login
110- name: CONTROLLER_PASSWORD
111 uid: *controllerCredsUID
112 key: password
113
Vijay Venkatesh Kumar5e138112021-12-14 11:41:36 -0500114# application environments
115applicationEnv:
116 LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true'
117
Vijay Venkatesh Kumarc269b262021-06-29 13:49:15 -0400118# Initial Application Configuration
119applicationConfig:
120 collector.rcc.appDescription: DCAE RestConf Collector Application
121 collector.rcc.appName: dcae-rcc
122 collector.rcc.dmaap.streamid: notification=device-registration
123 collector.rcc.inputQueue.maxPending: '8096'
124 tomcat.maxthreads: '200'
125 collector.rcc.service.port: '8080'
126 collector.rcc.service.secure.port: '8687'
127 collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks
128 collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass
129 collector.rcc.keystore.alias: dynamically generated
130 collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks
131 collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass
132 #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks
133 #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass
134 collector.header.authflag: '0'
135 collector.header.authlist: sample1,c2FtcGxlMQ==
136 collector.rcc.service.secure.clientauth: '0'
137 streams_publishes:
138 device-registration:
139 dmaap_info:
140 topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT
141 type: message_router
142 #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;"}]}]'
143 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;"}]}]'
144
145#applicationEnv:
146# CONTROLLER_IP: "172.30.0.55"
147# CONTROLLER_PORT: "26335"
148
149
150# Resource Limit Flavor -By Default Using Small
151flavor: small
152
153# Segregation for Different Environment (Small and Large)
154resources:
155 small:
156 limits:
157 cpu: 1
158 memory: 1Gi
159 requests:
160 cpu: 1
161 memory: 1Gi
162 large:
163 limits:
164 cpu: 2
165 memory: 2Gi
166 requests:
167 cpu: 2
168 memory: 2Gi
169 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200170
171#Pods Service Account
172serviceAccount:
173 nameOverride: dcae-restconf-collector
174 roles:
175 - read