[COMMON][ES] Simplify cert retrieval script
[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 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.hv-ves.hv-collector-main: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: /var/log/ONAP/dcae-hv-ves-collector
50
51 # directory where TLS certs should be stored
52 # if absent, no certs will be retrieved and stored
53 certDirectory: /etc/ves-hv/ssl
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 secrets:
61   - uid: &aafCredsUID aafcreds
62     type: basicAuth
63     login: '{{ .Values.aafCreds.user }}'
64     password: '{{ .Values.aafCreds.password }}'
65     passwordPolicy: required
66
67 # CMPv2 certificate
68 # It is used only when global parameter cmpv2Enabled is true
69 # Disabled by default
70 certificates:
71   - mountPath: /etc/ves-hv/ssl/external
72     commonName: dcae-hv-ves-collector
73     dnsNames:
74       - dcae-hv-ves-collector
75       - hv-ves-collector
76       - hv-ves
77     keystore:
78       outputType:
79         - jks
80       passwordSecretRef:
81         name: hv-ves-cmpv2-keystore-password
82         key: password
83         create: true
84
85 # dependencies
86 readinessCheck:
87   wait_for:
88     - dcae-config-binding-service
89     - aaf-cm
90
91 # probe configuration
92 readiness:
93   type: exec
94   initialDelaySeconds: 5
95   periodSeconds: 15
96   timeoutSeconds: 2
97   command:
98   - /opt/ves-hv-collector/healthcheck.sh
99
100 # service configuration
101 service:
102   type: NodePort
103   name: dcae-hv-ves-collector
104   ports:
105     - name: http
106       port: 6061
107       port_protocol: http
108       nodePort: 22
109
110 aafCreds:
111   user: admin
112   password: admin_secret
113
114 credentials:
115 - name: AAF_USER
116   uid: *aafCredsUID
117   key: login
118 - name: AAF_PASSWORD
119   uid: *aafCredsUID
120   key: password
121
122 # initial application configuration
123 applicationConfig:
124   logLevel: INFO
125   server.idleTimeoutSec: 300
126   server.listenPort: 6061
127   cbs.requestIntervalSec: 5
128   security.sslDisable: false
129   security.keys.keyStoreFile: /etc/ves-hv/ssl/cert.jks
130   security.keys.keyStorePasswordFile: /etc/ves-hv/ssl/jks.pass
131   security.keys.trustStoreFile: /etc/ves-hv/ssl/trust.jks
132   security.keys.trustStorePasswordFile: /etc/ves-hv/ssl/trust.pass
133   streams_publishes:
134     ves-3gpp-fault-supervision:
135       type: kafka
136       aaf_credentials:
137         username: ${AAF_USER}
138         password: ${AAF_PASSWORD}
139       kafka_info:
140         bootstrap_servers: message-router-kafka:9092
141         topic_name: SEC_3GPP_FAULTSUPERVISION_OUTPUT
142     ves-3gpp-provisioning:
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_PROVISIONING_OUTPUT
150     ves-3gpp-heartbeat:
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_HEARTBEAT_OUTPUT
158     ves-3gpp-performance-assurance:
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_PERFORMANCEASSURANCE_OUTPUT
166     perf3gpp:
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: HV_VES_PERF3GPP
174
175 applicationEnv:
176   JAVA_OPTS: '-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'
177
178 # Resource Limit flavor -By Default using small
179 flavor: small
180 # Segregation for Different environment (Small and Large)
181 resources:
182   small:
183     limits:
184       cpu: 2
185       memory: 2Gi
186     requests:
187       cpu: 1
188       memory: 1Gi
189   large:
190     limits:
191       cpu: 4
192       memory: 4Gi
193     requests:
194       cpu: 2
195       memory: 2Gi
196   unlimited: {}