Merge "[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 # Copyright © 2022 Nordix Foundation
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: true
27
28 #################################################################
29 # Filebeat configuration defaults.
30 #################################################################
31 filebeatConfig:
32   logstashServiceName: log-ls
33   logstashPort: 5044
34
35 #################################################################
36 # initContainer images.
37 #################################################################
38 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
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: hv-ves-kafka-secret
66     externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
67     type: genericKV
68     envs:
69       - name: sasl.jaas.config
70         value: '{{ .Values.config.someConfig }}'
71         policy: generate
72 config:
73   someConfig: blah
74
75 # CMPv2 certificate
76 # It is used only when:
77 # - certDirectory is set
78 # - global cmpv2Enabled flag is set to true
79 # - flag useCmpv2Certificates is set to true
80 # Disabled by default
81 useCmpv2Certificates: false
82 certificates:
83   - mountPath: /etc/ves-hv/ssl/external
84     commonName: dcae-hv-ves-collector
85     dnsNames:
86       - dcae-hv-ves-collector
87       - hv-ves-collector
88       - hv-ves
89     keystore:
90       outputType:
91         - jks
92       passwordSecretRef:
93         name: hv-ves-cmpv2-keystore-password
94         key: password
95         create: true
96
97 # dependencies
98 readinessCheck:
99   wait_for:
100     - aaf-cm
101
102 # probe configuration
103 readiness:
104   type: exec
105   initialDelaySeconds: 5
106   periodSeconds: 15
107   timeoutSeconds: 2
108   command:
109   - /opt/ves-hv-collector/healthcheck.sh
110
111 # service configuration
112 service:
113   type: NodePort
114   name: dcae-hv-ves-collector
115   ports:
116     - name: http
117       port: 6061
118       port_protocol: http
119       nodePort: 22
120
121 #strimzi kafka config
122 hvVesKafkaUser: dcae-hv-ves-kafka-user
123
124 # initial application configuration
125 applicationConfig:
126   logLevel: INFO
127   server.idleTimeoutSec: 300
128   server.listenPort: 6061
129   cbs.requestIntervalSec: 5
130   security.sslDisable: false
131   security.keys.keyStoreFile: /etc/ves-hv/ssl/cert.jks
132   security.keys.keyStorePasswordFile: /etc/ves-hv/ssl/jks.pass
133   security.keys.trustStoreFile: /etc/ves-hv/ssl/trust.jks
134   security.keys.trustStorePasswordFile: /etc/ves-hv/ssl/trust.pass
135   streams_publishes:
136     ves-3gpp-fault-supervision:
137       type: kafka
138       kafka_info:
139         bootstrap_servers: ${KAFKA_BOOTSTRAP_SERVERS}
140         topic_name: SEC_3GPP_FAULTSUPERVISION_OUTPUT
141     ves-3gpp-provisioning:
142       type: kafka
143       kafka_info:
144         bootstrap_servers: ${KAFKA_BOOTSTRAP_SERVERS}
145         topic_name: SEC_3GPP_PROVISIONING_OUTPUT
146     ves-3gpp-heartbeat:
147       type: kafka
148       kafka_info:
149         bootstrap_servers: ${KAFKA_BOOTSTRAP_SERVERS}
150         topic_name: SEC_3GPP_HEARTBEAT_OUTPUT
151     ves-3gpp-performance-assurance:
152       type: kafka
153       kafka_info:
154         bootstrap_servers: ${KAFKA_BOOTSTRAP_SERVERS}
155         topic_name: SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT
156     perf3gpp:
157       type: kafka
158       kafka_info:
159         bootstrap_servers: ${KAFKA_BOOTSTRAP_SERVERS}
160         topic_name: HV_VES_PERF3GPP
161
162 applicationEnv:
163   JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
164   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
165   KAFKA_BOOTSTRAP_SERVERS: '{{ include "common.release" . }}-strimzi-kafka-bootstrap:9092'
166   USE_SCRAM: 'true'
167   JAAS_CONFIG:
168     secretUid: hv-ves-kafka-secret
169     key: sasl.jaas.config
170
171 # Resource Limit flavor -By Default using small
172 flavor: small
173 # Segregation for Different environment (Small and Large)
174 resources:
175   small:
176     limits:
177       cpu: 2
178       memory: 2Gi
179     requests:
180       cpu: 1
181       memory: 1Gi
182   large:
183     limits:
184       cpu: 4
185       memory: 4Gi
186     requests:
187       cpu: 2
188       memory: 2Gi
189   unlimited: {}
190
191 #Pods Service Account
192 serviceAccount:
193   nameOverride: dcae-hv-ves-collector
194   roles:
195     - read