Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-datafile-collector / values.yaml
1 # ================================ LICENSE_START ==========================
2 # =========================================================================
3 #  Copyright (c) 2021 Nordix Foundation.
4 #  Copyright (c) 2022 Nokia.  All rights reserved.
5 #  Copyright (c) 2022 J. F. Lucas. All rights reserved.
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 # Secrets Configuration.
37 #################################################################
38 secrets:
39   - uid: &drPubCredsUID drpubcreds
40     type: basicAuth
41     login: '{{ .Values.drPubscriberCreds.username }}'
42     password: '{{ .Values.drPubscriberCreds.password }}'
43     passwordPolicy: required
44
45 #################################################################
46 # InitContainer Images.
47 #################################################################
48 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
49 certPostProcessorImage: onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.5.0
50
51 #################################################################
52 # Application Configuration Defaults.
53 #################################################################
54 # Application Image
55 image: onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.8.0
56 pullPolicy: Always
57
58 # Log directory where logging sidecar should look for log files
59 # if path is set to null sidecar won't be deployed in spite of
60 # global.centralizedLoggingEnabled setting.
61 log:
62   path: /var/log/ONAP
63 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
64
65 # Directory where TLS certs should be stored
66 # if absent, no certs will be retrieved and stored
67 certDirectory: /opt/app/datafile/etc/cert
68
69 # TLS role -- set to true if microservice acts as server
70 # If true, an init container will retrieve a server cert
71 # and key from AAF and mount them in certDirectory.
72 tlsServer: true
73
74 # CMPv2 certificate
75 # It is used only when:
76 # - certDirectory is set
77 # - global cmpv2Enabled flag is set to true
78 # - flag useCmpv2Certificates is set to true
79 # Disabled by default
80 useCmpv2Certificates: false
81 certificates:
82   - mountPath: /opt/app/datafile/etc/cert/external
83     commonName: dcae-datafile-collector
84     dnsNames:
85       - dcae-datafile-collector
86       - datafile-collector
87       - datafile
88     keystore:
89       outputType:
90         - p12
91       passwordSecretRef:
92         name: datafile-collector-cmpv2-keystore-password
93         key: password
94         create: true
95
96 # Dependencies
97 readinessCheck:
98   wait_for:
99     containers:
100       - aaf-cm
101       - dmaap-bc
102       - dmaap-provisioning-job
103
104 # Probe Configuration
105 readiness:
106   initialDelaySeconds: 10
107   periodSeconds: 15
108   timeoutSeconds: 1
109   path: /heartbeat
110   scheme: HTTP
111   port: 8100
112
113 # Service Configuration
114 service:
115   type: ClusterIP
116   name: datafile-collector
117   ports:
118     - name: https
119       port: 8443
120       plain_port: 8100
121       port_protocol: http
122
123 # Data Router Publisher Credentials
124 drPubscriberCreds:
125   username: username
126   password: password
127
128 credentials:
129 - name: DR_USERNAME
130   uid: *drPubCredsUID
131   key: login
132 - name: DR_PASSWORD
133   uid: *drPubCredsUID
134   key: password
135
136 # Initial Application Configuration
137 applicationConfig:
138   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
139   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
140   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
141   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
142   dmaap.certificateConfig.enableCertAuth: true
143   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
144   dmaap.dmaapConsumerConfiguration.consumerId: C12
145   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
146   dmaap.security.enableDmaapCertAuth: true
147   dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/jks.pass
148   dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.jks
149   dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
150   dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
151   service_calls: []
152   sftp.security.strictHostKeyChecking: true
153   streams_publishes:
154     PM_MEAS_FILES:
155       dmaap_info:
156         publisher_id: ${DR_FILES_PUBLISHER_ID_0}
157         location: loc00
158         log_url: ${DR_LOG_URL_0}
159         publish_url: ${DR_FILES_PUBLISHER_URL_0}
160         username: ${DR_USERNAME}
161         password: ${DR_PASSWORD}
162       type: data_router
163   streams_subscribes:
164     dmaap_subscriber:
165       dmaap_info:
166         topic_url: "https://message-router:3905/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
167       type: message_router
168
169 # DataRouter Feed Configuration
170 drFeedConfig:
171   - feedName: bulk_pm_feed
172     owner: dcaecm
173     feedVersion: "0.0"
174     asprClassification: unclassified
175     feedDescription: DFC Feed Creation
176
177 # DataRouter Publisher Configuration
178 drPubConfig:
179   - feedName: bulk_pm_feed
180     username: ${DR_USERNAME}
181     userpwd: ${DR_PASSWORD}
182     dcaeLocationName: loc00
183
184 # ConfigMap Configuration for Feed, Dr_Publisher
185 volumes:
186   - name: feeds-config
187     path: /opt/app/config/feeds
188   - name: drpub-config
189     path: /opt/app/config/dr_pubs
190
191 # Resource Limit Flavor -By Default Using Small
192 flavor: small
193
194 # Segregation for Different Environment (Small and Large)
195 resources:
196   small:
197     limits:
198       cpu: 1
199       memory: 1Gi
200     requests:
201       cpu: 500m
202       memory: 768Mi
203   large:
204     limits:
205       cpu: 2
206       memory: 2Gi
207     requests:
208       cpu: 1
209       memory: 1Gi
210   unlimited: {}
211
212 #Pods Service Account
213 serviceAccount:
214   nameOverride: dcae-datafile-collector
215   roles:
216     - read