[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / dcaegen2-services / components / dcae-hv-ves-collector / values.yaml
1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2021-2022 J. F. Lucas. All rights reserved.
4 # Copyright (c) 2021-2022 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   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat configuration defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # initContainer images.
36 #################################################################
37 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
38 certPostProcessorImage: onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.5.0
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43 # application image
44 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.10.0
45 pullPolicy: Always
46
47 # log directory where logging sidecar should look for log files
48 # if path is set to null sidecar won't be deployed in spite of
49 # global.centralizedLoggingEnabled setting.
50 log:
51   path: /var/log/ONAP/dcae-hv-ves-collector
52 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
53
54 # directory where TLS certs should be stored
55 # if absent, no certs will be retrieved and stored
56 certDirectory: /etc/ves-hv/ssl
57
58 # TLS role -- set to true if microservice acts as server
59 # If true, an init container will retrieve a server cert
60 # and key from AAF and mount them in certDirectory.
61 tlsServer: true
62
63 secrets:
64   - uid: &aafCredsUID aafcreds
65     type: basicAuth
66     login: '{{ .Values.aafCreds.user }}'
67     password: '{{ .Values.aafCreds.password }}'
68     passwordPolicy: required
69
70 # CMPv2 certificate
71 # It is used only when:
72 # - certDirectory is set
73 # - global cmpv2Enabled flag is set to true
74 # - flag useCmpv2Certificates is set to true
75 # Disabled by default
76 useCmpv2Certificates: false
77 certificates:
78   - mountPath: /etc/ves-hv/ssl/external
79     commonName: dcae-hv-ves-collector
80     dnsNames:
81       - dcae-hv-ves-collector
82       - hv-ves-collector
83       - hv-ves
84     keystore:
85       outputType:
86         - jks
87       passwordSecretRef:
88         name: hv-ves-cmpv2-keystore-password
89         key: password
90         create: true
91
92 # dependencies
93 readinessCheck:
94   wait_for:
95     - aaf-cm
96
97 # probe configuration
98 readiness:
99   type: exec
100   initialDelaySeconds: 5
101   periodSeconds: 15
102   timeoutSeconds: 2
103   command:
104   - /opt/ves-hv-collector/healthcheck.sh
105
106 # service configuration
107 service:
108   type: NodePort
109   name: dcae-hv-ves-collector
110   ports:
111     - name: http
112       port: 6061
113       port_protocol: http
114       nodePort: 22
115
116 aafCreds:
117   user: admin
118   password: admin_secret
119
120 credentials:
121 - name: AAF_USER
122   uid: *aafCredsUID
123   key: login
124 - name: AAF_PASSWORD
125   uid: *aafCredsUID
126   key: password
127
128 # initial application configuration
129 applicationConfig:
130   logLevel: INFO
131   server.idleTimeoutSec: 300
132   server.listenPort: 6061
133   cbs.requestIntervalSec: 5
134   security.sslDisable: false
135   security.keys.keyStoreFile: /etc/ves-hv/ssl/cert.jks
136   security.keys.keyStorePasswordFile: /etc/ves-hv/ssl/jks.pass
137   security.keys.trustStoreFile: /etc/ves-hv/ssl/trust.jks
138   security.keys.trustStorePasswordFile: /etc/ves-hv/ssl/trust.pass
139   streams_publishes:
140     ves-3gpp-fault-supervision:
141       type: kafka
142       aaf_credentials:
143         username: ${AAF_USER}
144         password: ${AAF_PASSWORD}
145       kafka_info:
146         bootstrap_servers: message-router-kafka:9092
147         topic_name: SEC_3GPP_FAULTSUPERVISION_OUTPUT
148     ves-3gpp-provisioning:
149       type: kafka
150       aaf_credentials:
151         username: ${AAF_USER}
152         password: ${AAF_PASSWORD}
153       kafka_info:
154         bootstrap_servers: message-router-kafka:9092
155         topic_name: SEC_3GPP_PROVISIONING_OUTPUT
156     ves-3gpp-heartbeat:
157       type: kafka
158       aaf_credentials:
159         username: ${AAF_USER}
160         password: ${AAF_PASSWORD}
161       kafka_info:
162         bootstrap_servers: message-router-kafka:9092
163         topic_name: SEC_3GPP_HEARTBEAT_OUTPUT
164     ves-3gpp-performance-assurance:
165       type: kafka
166       aaf_credentials:
167         username: ${AAF_USER}
168         password: ${AAF_PASSWORD}
169       kafka_info:
170         bootstrap_servers: message-router-kafka:9092
171         topic_name: SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT
172     perf3gpp:
173       type: kafka
174       aaf_credentials:
175         username: ${AAF_USER}
176         password: ${AAF_PASSWORD}
177       kafka_info:
178         bootstrap_servers: message-router-kafka:9092
179         topic_name: HV_VES_PERF3GPP
180
181 applicationEnv:
182   JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
183   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
184
185 # Resource Limit flavor -By Default using small
186 flavor: small
187 # Segregation for Different environment (Small and Large)
188 resources:
189   small:
190     limits:
191       cpu: 2
192       memory: 2Gi
193     requests:
194       cpu: 1
195       memory: 1Gi
196   large:
197     limits:
198       cpu: 4
199       memory: 4Gi
200     requests:
201       cpu: 2
202       memory: 2Gi
203   unlimited: {}
204
205 #Pods Service Account
206 serviceAccount:
207   nameOverride: dcae-hv-ves-collector
208   roles:
209     - read