Merge "[AAI] Add model-loader tracing config"
[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 # Waiting for dmaap-dr-node (which depends on dmaap-dr-prov)
93 # to be sure that we can provision the DR feed that's needed
94 readinessCheck:
95   wait_for:
96     services:
97       - dmaap-dr-node
98       - message-router
99
100 # Probe Configuration
101 readiness:
102   initialDelaySeconds: 10
103   periodSeconds: 15
104   timeoutSeconds: 1
105   path: /heartbeat
106   scheme: HTTP
107   port: 8100
108
109 # Service Configuration
110 service:
111   type: ClusterIP
112   name: datafile-collector
113   ports:
114     - name: http
115       port: 8443
116       plain_port: 8100
117       port_protocol: http
118
119 ingress:
120   enabled: false
121   service:
122     - baseaddr: "dcae-datafile-collector-api"
123       name: "datafile-collector"
124       port: 8443
125       plain_port: 8100
126   config:
127     ssl: "redirect"
128
129 serviceMesh:
130   authorizationPolicy:
131     authorizedPrincipals:
132       - serviceAccount: dcae-pm-mapper-read
133       - serviceAccount: message-router-read
134       - serviceAccount: istio-ingress
135         namespace: istio-ingress
136
137 # Data Router Publisher Credentials
138 drPubscriberCreds:
139   username: username
140   password: password
141
142 credentials:
143 - name: DR_USERNAME
144   uid: *drPubCredsUID
145   key: login
146 - name: DR_PASSWORD
147   uid: *drPubCredsUID
148   key: password
149
150 # Initial Application Configuration
151 applicationConfig:
152   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
153   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
154   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
155   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
156   dmaap.certificateConfig.enableCertAuth: false
157   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
158   dmaap.dmaapConsumerConfiguration.consumerId: C12
159   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
160   dmaap.security.enableDmaapCertAuth: false
161   dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/jks.pass
162   dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.jks
163   dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
164   dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
165   service_calls: []
166   sftp.security.strictHostKeyChecking: true
167   streams_publishes:
168     PM_MEAS_FILES:
169       dmaap_info:
170         publisher_id: "dummy_id"
171         location: loc00
172         log_url: ${DR_FEED_LOGURL_0}
173         publish_url: ${DR_FEED_PUBURL_0}
174         username: ${DR_USERNAME}
175         password: ${DR_PASSWORD}
176       type: data_router
177   streams_subscribes:
178     dmaap_subscriber:
179       dmaap_info:
180         topic_url: "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
181       type: message_router
182
183 applicationEnv:
184   #CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
185   #Temporary Dummy CBS Port Value until internal SDK library is updated
186   CONFIG_BINDING_SERVICE_SERVICE_PORT: '0000'
187
188 # DataRouter Feed Configuration
189 drFeedConfig:
190   - feedName: bulk_pm_feed
191     feedVersion: "0.0"
192     classification: unclassified
193     feedDescription: DFC Feed Creation
194     publisher:
195       username: ${DR_USERNAME}
196       password: ${DR_PASSWORD}
197
198 # ConfigMap Configuration for Feed, Dr_Publisher
199 volumes:
200   - name: feeds-config
201     path: /opt/app/config/feeds
202
203 # Resource Limit Flavor -By Default Using Small
204 flavor: small
205
206 # Segregation for Different Environment (Small and Large)
207 resources:
208   small:
209     limits:
210       cpu: "2"
211       memory: "1Gi"
212     requests:
213       cpu: "1"
214       memory: "1Gi"
215   large:
216     limits:
217       cpu: "4"
218       memory: "2Gi"
219     requests:
220       cpu: "2"
221       memory: "2Gi"
222   unlimited: {}
223
224 #Pods Service Account
225 serviceAccount:
226   nameOverride: dcae-datafile-collector
227   roles:
228     - read