2ce6c8977500c7257a37bbc823391f3b52b5c82b
[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       - dcae-config-binding-service
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 # Environment variables
124 applicationEnv:
125 # Empty path forces DFC to use Consul configuration, which allows app runtime reconfiguration.
126 # It's a workaround because DMAAP specific env variables are not available in main container.
127   CBS_CLIENT_CONFIG_PATH: ''
128
129 # Data Router Publisher Credentials
130 drPubscriberCreds:
131   username: username
132   password: password
133
134 credentials:
135 - name: DR_USERNAME
136   uid: *drPubCredsUID
137   key: login
138 - name: DR_PASSWORD
139   uid: *drPubCredsUID
140   key: password
141
142 # Initial Application Configuration
143 applicationConfig:
144   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
145   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
146   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
147   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
148   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
149   dmaap.dmaapConsumerConfiguration.consumerId: C12
150   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
151   dmaap.security.enableDmaapCertAuth: true
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: "https://message-router:3905/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
172       type: message_router
173
174 # DataRouter Feed Configuration
175 drFeedConfig:
176   - feedName: bulk_pm_feed
177     owner: dcaecm
178     feedVersion: "0.0"
179     asprClassification: unclassified
180     feedDescription: DFC Feed Creation
181
182 # DataRouter Publisher Configuration
183 drPubConfig:
184   - feedName: bulk_pm_feed
185     username: ${DR_USERNAME}
186     userpwd: ${DR_PASSWORD}
187     dcaeLocationName: loc00
188
189 # ConfigMap Configuration for Feed, Dr_Publisher
190 volumes:
191   - name: feeds-config
192     path: /opt/app/config/feeds
193   - name: drpub-config
194     path: /opt/app/config/dr_pubs
195
196 # Resource Limit Flavor -By Default Using Small
197 flavor: small
198
199 # Segregation for Different Environment (Small and Large)
200 resources:
201   small:
202     limits:
203       cpu: 1
204       memory: 1Gi
205     requests:
206       cpu: 500m
207       memory: 768Mi
208   large:
209     limits:
210       cpu: 2
211       memory: 2Gi
212     requests:
213       cpu: 1
214       memory: 1Gi
215   unlimited: {}
216
217 #Pods Service Account
218 serviceAccount:
219   nameOverride: dcae-datafile-collector
220   roles:
221     - read