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