7c6b3e964911171f0e2315426f4f5b0f83ee72a0
[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-2023 J. F. Lucas. All rights reserved.
6 #  Copyright (c) 2023 Deutsche Telekom AG. All rights reserved.
7 # =========================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #     http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ================================= LICENSE_END ===========================
20
21 #################################################################
22 # Global Configuration Defaults.
23 #################################################################
24 global:
25   nodePortPrefix: 302
26   nodePortPrefixExt: 304
27   centralizedLoggingEnabled: true
28
29 #################################################################
30 # Filebeat Configuration Defaults.
31 #################################################################
32 filebeatConfig:
33   logstashServiceName: log-ls
34   logstashPort: 5044
35
36 #################################################################
37 # Secrets Configuration.
38 #################################################################
39 secrets:
40   - uid: &drPubCredsUID drpubcreds
41     type: basicAuth
42     login: '{{ .Values.drPubscriberCreds.username }}'
43     password: '{{ .Values.drPubscriberCreds.password }}'
44     passwordPolicy: required
45
46 #################################################################
47 # InitContainer Images.
48 #################################################################
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.10.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 # CMPv2 certificate
70 # It is used only when:
71 # - certDirectory is set
72 # - global cmpv2Enabled flag is set to true
73 # - flag useCmpv2Certificates is set to true
74 # Disabled by default
75 useCmpv2Certificates: false
76 certificates:
77   - mountPath: /opt/app/datafile/etc/cert/external
78     commonName: dcae-datafile-collector
79     dnsNames:
80       - dcae-datafile-collector
81       - datafile-collector
82       - datafile
83     keystore:
84       outputType:
85         - p12
86       passwordSecretRef:
87         name: datafile-collector-cmpv2-keystore-password
88         key: password
89         create: true
90
91 # Dependencies
92 readinessCheck:
93   wait_for:
94     containers:
95       - dmaap-bc
96       - dmaap-provisioning-job
97       - message-router
98
99 # Probe Configuration
100 readiness:
101   initialDelaySeconds: 10
102   periodSeconds: 15
103   timeoutSeconds: 1
104   path: /heartbeat
105   scheme: HTTP
106   port: 8100
107
108 # Service Configuration
109 service:
110   type: ClusterIP
111   name: datafile-collector
112   ports:
113     - name: http
114       port: 8443
115       plain_port: 8100
116       port_protocol: http
117
118 ingress:
119   enabled: false
120   service:
121     - baseaddr: "dcae-datafile-collector-api"
122       name: "datafile-collector"
123       port: 8443
124       plain_port: 8100
125   config:
126     ssl: "redirect"
127
128 # Data Router Publisher Credentials
129 drPubscriberCreds:
130   username: username
131   password: password
132
133 credentials:
134 - name: DR_USERNAME
135   uid: *drPubCredsUID
136   key: login
137 - name: DR_PASSWORD
138   uid: *drPubCredsUID
139   key: password
140
141 # Initial Application Configuration
142 applicationConfig:
143   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
144   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
145   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
146   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
147   dmaap.certificateConfig.enableCertAuth: false
148   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
149   dmaap.dmaapConsumerConfiguration.consumerId: C12
150   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
151   dmaap.security.enableDmaapCertAuth: false
152   dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/jks.pass
153   dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.jks
154   dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
155   dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
156   service_calls: []
157   sftp.security.strictHostKeyChecking: true
158   streams_publishes:
159     PM_MEAS_FILES:
160       dmaap_info:
161         publisher_id: ${DR_FILES_PUBLISHER_ID_0}
162         location: loc00
163         log_url: ${DR_LOG_URL_0}
164         publish_url: ${DR_FILES_PUBLISHER_URL_0}
165         username: ${DR_USERNAME}
166         password: ${DR_PASSWORD}
167       type: data_router
168   streams_subscribes:
169     dmaap_subscriber:
170       dmaap_info:
171         topic_url: "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
172       type: message_router
173
174 applicationEnv:
175   #CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
176   #Temporary Dummy CBS Port Value until internal SDK library is updated
177   CONFIG_BINDING_SERVICE_SERVICE_PORT: '0000'
178
179 # DataRouter Feed Configuration
180 drFeedConfig:
181   - feedName: bulk_pm_feed
182     owner: dcaecm
183     feedVersion: "0.0"
184     asprClassification: unclassified
185     feedDescription: DFC Feed Creation
186
187 # DataRouter Publisher Configuration
188 drPubConfig:
189   - feedName: bulk_pm_feed
190     username: ${DR_USERNAME}
191     userpwd: ${DR_PASSWORD}
192     dcaeLocationName: loc00
193
194 # ConfigMap Configuration for Feed, Dr_Publisher
195 volumes:
196   - name: feeds-config
197     path: /opt/app/config/feeds
198   - name: drpub-config
199     path: /opt/app/config/dr_pubs
200
201 # Resource Limit Flavor -By Default Using Small
202 flavor: small
203
204 # Segregation for Different Environment (Small and Large)
205 resources:
206   small:
207     limits:
208       cpu: 1
209       memory: 1Gi
210     requests:
211       cpu: 500m
212       memory: 768Mi
213   large:
214     limits:
215       cpu: 2
216       memory: 2Gi
217     requests:
218       cpu: 1
219       memory: 1Gi
220   unlimited: {}
221
222 #Pods Service Account
223 serviceAccount:
224   nameOverride: dcae-datafile-collector
225   roles:
226     - read