[DCAEGEN2] Deploy DCAE microservices via Helm
[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 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24
25 #################################################################
26 # Filebeat configuration defaults.
27 #################################################################
28 filebeatConfig:
29   logstashServiceName: log-ls
30   logstashPort: 5044
31
32 #################################################################
33 # initContainer images.
34 #################################################################
35 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
36 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.0
37
38 #################################################################
39 # Application configuration defaults.
40 #################################################################
41 # application image
42 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.6.0
43 pullPolicy: Always
44
45 # log directory where logging sidecar should look for log files
46 # if absent, no sidecar will be deployed
47 logDirectory: /var/log/ONAP/dcae-hv-ves-collector
48
49 # directory where TLS certs should be stored
50 # if absent, no certs will be retrieved and stored
51 certDirectory: /etc/ves-hv/ssl
52
53 # TLS role -- set to true if microservice acts as server
54 # If true, an init container will retrieve a server cert
55 # and key from AAF and mount them in certDirectory.
56 tlsServer: true
57
58 secrets:
59   - uid: &aafCredsUID aafcreds
60     type: basicAuth
61     login: '{{ .Values.aafCreds.user }}'
62     password: '{{ .Values.aafCreds.password }}'
63     passwordPolicy: required
64
65 # dependencies
66 readinessCheck:
67   wait_for:
68     - dcae-config-binding-service
69     - aaf-cm
70
71 # probe configuration
72 readiness:
73   type: exec
74   initialDelaySeconds: 5
75   periodSeconds: 15
76   timeoutSeconds: 2
77   command:
78   - /opt/ves-hv-collector/healthcheck.sh
79
80 # service configuration
81 service:
82   type: NodePort
83   name: dcae-hv-ves-collector
84   ports:
85     - name: http
86       port: 6061
87       port_protocol: http
88       nodePort: 22
89
90 aafCreds:
91   user: admin
92   password: admin_secret
93
94 credentials:
95 - name: AAF_USER
96   uid: *aafCredsUID
97   key: login
98 - name: AAF_PASSWORD
99   uid: *aafCredsUID
100   key: password
101
102 # initial application configuration
103 applicationConfig:
104   logLevel: INFO
105   server.idleTimeoutSec: 300
106   server.listenPort: 6061
107   cbs.requestIntervalSec: 5
108   security.sslDisable: false
109   security.keys.keyStoreFile: /etc/ves-hv/ssl/cert.jks
110   security.keys.keyStorePasswordFile: /etc/ves-hv/ssl/jks.pass
111   security.keys.trustStoreFile: /etc/ves-hv/ssl/trust.jks
112   security.keys.trustStorePasswordFile: /etc/ves-hv/ssl/trust.pass
113   streams_publishes:
114     perf3gpp:
115       type: kafka
116       aaf_credentials:
117         username: ${AAF_USER}
118         password: ${AAF_PASSWORD}
119       kafka_info:
120         bootstrap_servers: message-router-kafka:9092
121         topic_name: HV_VES_PERF3GPP
122
123 applicationEnv:
124   JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
125
126 # Resource Limit flavor -By Default using small
127 flavor: small
128 # Segregation for Different environment (Small and Large)
129 resources:
130   small:
131     limits:
132       cpu: 2
133       memory: 2Gi
134     requests:
135       cpu: 1
136       memory: 1Gi
137   large:
138     limits:
139       cpu: 4
140       memory: 4Gi
141     requests:
142       cpu: 2
143       memory: 2Gi
144   unlimited: {}