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