Merge "[COMMON] Add custom certs into AAF truststore"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-ves-collector / values.yaml
1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2021 J. F. Lucas. All rights reserved.
4 # Copyright (c) 2021 Nokia.  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
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
25
26 #################################################################
27 # Filebeat configuration defaults.
28 #################################################################
29 filebeatConfig:
30   logstashServiceName: log-ls
31   logstashPort: 5044
32
33 #################################################################
34 # initContainer images.
35 #################################################################
36 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
37 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.0
38 certPostProcessorImage: onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.3.3
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43 # application image
44 image: onap/org.onap.dcaegen2.collectors.ves.vescollector:1.8.0
45 pullPolicy: Always
46
47 # log directory where logging sidecar should look for log files
48 # if absent, no sidecar will be deployed
49 logDirectory: /opt/app/VESCollector/logs
50
51 # directory where TLS certs should be stored
52 # if absent, no certs will be retrieved and stored
53 certDirectory: /opt/app/dcae-certificate
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
60 # CMPv2 certificate
61 certificates:
62   - mountPath: /opt/app/dcae-certificate/external
63     commonName: dcae-ves-collector
64     dnsNames:
65       - dcae-ves-collector
66       - ves-collector
67       - ves
68     keystore:
69       outputType:
70         - jks
71       passwordSecretRef:
72         name: ves-cmpv2-keystore-password
73         key: password
74         create: true
75
76 # dependencies
77 readinessCheck:
78   wait_for:
79     - dcae-config-binding-service
80     - aaf-cm
81
82 # probe configuration
83   initialDelaySeconds: 5
84   periodSeconds: 15
85   path: /healthcheck
86   scheme: HTTP
87   port: 8080
88
89 # service configuration
90 service:
91   type: NodePort
92   name: dcae-ves-collector
93   ports:
94     - name: http
95       port: 8443
96       plain_port: 8080
97       port_protocol: http
98       nodePort: 17
99       useNodePortExt: true
100
101 # initial application configuration
102 applicationConfig:
103   collector.dmaap.streamid: fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurement=ves-measurement|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration|3GPP-FaultSupervision=ves-3gpp-fault-supervision|3GPP-Heartbeat=ves-3gpp-heartbeat|3GPP-Provisioning=ves-3gpp-provisioning|3GPP-PerformanceAssurance=ves-3gpp-performance-assurance
104   collector.inputQueue.maxPending: "8096"
105   collector.keystore.file.location: /opt/app/dcae-certificate/cert.jks
106   collector.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass
107   collector.truststore.file.location: /opt/app/dcae-certificate/trust.jks
108   collector.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass
109   collector.schema.checkflag: "1"
110   collector.schema.file: "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.1.json\",\"v7\":\"./etc/CommonEventFormat_30.2.1_ONAP.json\"}"
111   collector.externalSchema.checkflag: 1
112   collector.externalSchema.schemasLocation: "./etc/externalRepo/"
113   collector.externalSchema.mappingFileLocation: "./etc/externalRepo/schema-map.json"
114   event.externalSchema.schemaRefPath: $.event.stndDefinedFields.schemaReference
115   event.externalSchema.stndDefinedDataPath: $.event.stndDefinedFields.data
116   collector.service.port: "8080"
117   collector.service.secure.port: "8443"
118   event.transform.flag: "0"
119   auth.method: "certBasicAuth"
120   header.authlist: "sample1,$2a$10$0buh.2WeYwN868YMwnNNEuNEAMNYVU9.FSMJGyIKV3dGET/7oGOi6|demouser,$2a$10$1cc.COcqV/d3iT2N7BjPG.S6ZKv2jpb9a5MV.o7lMih/GpjJRX.Ce"
121   services_calls: []
122   streams_publishes:
123     ves-fault:
124       dmaap_info:
125         topic_url:
126           "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
127       type: message_router
128     ves-measurement:
129       dmaap_info:
130         topic_url:
131           "http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
132       type: message_router
133     ves-notification:
134       dmaap_info:
135         topic_url:
136           "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
137       type: message_router
138     ves-pnfRegistration:
139       dmaap_info:
140         topic_url:
141           "http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT"
142       type: message_router
143     ves-heartbeat:
144       dmaap_info:
145         topic_url:
146           "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
147       type: message_router
148     ves-other:
149       dmaap_info:
150         topic_url:
151           "http://message-router:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
152       type: message_router
153     ves-3gpp-fault-supervision:
154       dmaap_info:
155         topic_url:
156           "http://message-router:3904/events/unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT"
157       type: message_router
158     ves-3gpp-provisioning:
159       dmaap_info:
160         topic_url:
161           "http://message-router:3904/events/unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT"
162       type: message_router
163     ves-3gpp-heartbeat:
164       dmaap_info:
165         topic_url:
166           "http://message-router:3904/events/unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT"
167       type: message_router
168     ves-3gpp-performance-assurance:
169       dmaap_info:
170         topic_url:
171           "http://message-router:3904/events/unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT"
172       type: message_router
173   collector.dynamic.config.update.frequency: "5"
174 # Resource Limit flavor -By Default using small
175 flavor: small
176 # Segregation for Different environment (Small and Large)
177 resources:
178   small:
179     limits:
180       cpu: 2
181       memory: 2Gi
182     requests:
183       cpu: 1
184       memory: 1Gi
185   large:
186     limits:
187       cpu: 4
188       memory: 4Gi
189     requests:
190       cpu: 2
191       memory: 2Gi
192   unlimited: {}