0a9203b9088abd83980c96941ad03340f4c496c1
[oom.git] / kubernetes / dcaegen2-services / components / dcae-restconf-collector / values.yaml
1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 # Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved.
4 # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
5 # Copyright (c) 2023 Deutsche Telekom AG. All rights reserved.
6 # ============================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ================================= LICENSE_END ==============================
19
20 #################################################################
21 # Global Configuration Defaults.
22 #################################################################
23 global:
24   nodePortPrefix: 302
25   nodePortPrefixExt: 304
26   centralizedLoggingEnabled: false
27
28 #################################################################
29 # Filebeat Configuration Defaults.
30 #################################################################
31 filebeatConfig:
32   logstashServiceName: log-ls
33   logstashPort: 5044
34
35 #################################################################
36 # Secrets Configuration.
37 #################################################################
38 secrets:
39   - uid: &controllerCredsUID controllercreds
40     type: basicAuth
41     login: '{{ .Values.controllerCreds.username }}'
42     password: '{{ .Values.controllerCreds.password }}'
43     passwordPolicy: required
44
45 #################################################################
46 # Application Configuration Defaults.
47 #################################################################
48 # Application Image
49 image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.4.1
50 pullPolicy: Always
51
52 # Log directory where logging sidecar should look for log files
53 # if path is set to null sidecar won't be deployed in spite of
54 # global.centralizedLoggingEnabled setting.
55 log:
56   path: null # /opt/app/restconfcollector/logs
57 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
58
59 # Dependencies
60 readinessCheck:
61   wait_for:
62     - message-router
63
64 # Probe Configuration
65 readiness:
66   initialDelaySeconds: 100
67   periodSeconds: 60
68   timeoutSeconds: 5
69   path: /healthcheck
70   scheme: HTTP
71   port: 8080
72
73
74 # service configuration
75 service:
76   type: NodePort
77   name: dcae-restconf-collector
78   ports:
79     - name: http
80       port: 8443
81       plain_port: 8080
82       port_protocol: http
83       nodePort: 16
84       useNodePortExt: true
85
86 ingress:
87   enabled: false
88   service:
89     - baseaddr: "dcae-restconf-collector-api"
90       name: "dcae-restconf-collector"
91       port: 8443
92       plain_port: 8080
93   config:
94     ssl: "redirect"
95
96 serviceMesh:
97   authorizationPolicy:
98     authorizedPrincipals:
99       - serviceAccount: istio-ingress
100         namespace: istio-ingress
101
102 # AAF Credentials
103 controllerCreds:
104   username: access
105   password: Huawei@123
106
107 credentials:
108 - name: CONTROLLER_USERNAME
109   uid: *controllerCredsUID
110   key: login
111 - name: CONTROLLER_PASSWORD
112   uid: *controllerCredsUID
113   key: password
114
115 # application environments
116 applicationEnv:
117   LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true'
118
119 # Initial Application Configuration
120 applicationConfig:
121   collector.rcc.appDescription: DCAE RestConf Collector Application
122   collector.rcc.appName: dcae-rcc
123   collector.rcc.dmaap.streamid: notification=device-registration
124   collector.rcc.inputQueue.maxPending: '8096'
125   tomcat.maxthreads: '200'
126   collector.rcc.service.port: '8080'
127   # Disabling of secure port not working (DCAEGEN2-3336)
128   collector.rcc.service.secure.port: '0'
129   #collector.rcc.service.secure.port: '8687'
130   #collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks
131   #collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass
132   #collector.rcc.keystore.alias: dynamically generated
133   #collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks
134   #collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass
135   #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks
136   #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass
137   collector.header.authflag: '0'
138   collector.header.authlist: sample1,c2FtcGxlMQ==
139   collector.rcc.service.secure.clientauth: '0'
140   streams_publishes:
141     device-registration:
142      dmaap_info:
143         topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT
144      type: message_router
145   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;"}]}]'
146
147 #applicationEnv:
148 #  CONTROLLER_IP: "172.30.0.55"
149 #  CONTROLLER_PORT: "26335"
150
151
152 # Resource Limit Flavor -By Default Using Small
153 flavor: small
154
155 # Segregation for Different Environment (Small and Large)
156 resources:
157   small:
158     limits:
159       cpu: 1
160       memory: 1Gi
161     requests:
162       cpu: 1
163       memory: 1Gi
164   large:
165     limits:
166       cpu: 2
167       memory: 2Gi
168     requests:
169       cpu: 2
170       memory: 2Gi
171   unlimited: {}
172
173 #Pods Service Account
174 serviceAccount:
175   nameOverride: dcae-restconf-collector
176   roles:
177     - read