[DCAE] Revert TLS disabling for external DCAE MSs
[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.9.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       - message-router
104
105 # Probe Configuration
106 readiness:
107   initialDelaySeconds: 10
108   periodSeconds: 15
109   timeoutSeconds: 1
110   path: /heartbeat
111   scheme: HTTP
112   port: 8100
113
114 # Service Configuration
115 service:
116   type: ClusterIP
117   name: datafile-collector
118   ports:
119     - name: http
120       port: 8443
121       plain_port: 8100
122       port_protocol: http
123
124 ingress:
125   enabled: false
126   service:
127     - baseaddr: "dcae-datafile-collector-api"
128       name: "datafile-collector"
129       port: 8443
130       plain_port: 8100
131   config:
132     ssl: "redirect"
133
134 # Data Router Publisher Credentials
135 drPubscriberCreds:
136   username: username
137   password: password
138
139 credentials:
140 - name: DR_USERNAME
141   uid: *drPubCredsUID
142   key: login
143 - name: DR_PASSWORD
144   uid: *drPubCredsUID
145   key: password
146
147 # Initial Application Configuration
148 applicationConfig:
149   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
150   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
151   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
152   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
153   dmaap.certificateConfig.enableCertAuth: true
154   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
155   dmaap.dmaapConsumerConfiguration.consumerId: C12
156   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
157   dmaap.security.enableDmaapCertAuth: true
158   dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/jks.pass
159   dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.jks
160   dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
161   dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
162   service_calls: []
163   sftp.security.strictHostKeyChecking: true
164   streams_publishes:
165     PM_MEAS_FILES:
166       dmaap_info:
167         publisher_id: ${DR_FILES_PUBLISHER_ID_0}
168         location: loc00
169         log_url: ${DR_LOG_URL_0}
170         publish_url: ${DR_FILES_PUBLISHER_URL_0}
171         username: ${DR_USERNAME}
172         password: ${DR_PASSWORD}
173       type: data_router
174   streams_subscribes:
175     dmaap_subscriber:
176       dmaap_info:
177         topic_url: "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
178       type: message_router
179
180 # DataRouter Feed Configuration
181 drFeedConfig:
182   - feedName: bulk_pm_feed
183     owner: dcaecm
184     feedVersion: "0.0"
185     asprClassification: unclassified
186     feedDescription: DFC Feed Creation
187
188 # DataRouter Publisher Configuration
189 drPubConfig:
190   - feedName: bulk_pm_feed
191     username: ${DR_USERNAME}
192     userpwd: ${DR_PASSWORD}
193     dcaeLocationName: loc00
194
195 # ConfigMap Configuration for Feed, Dr_Publisher
196 volumes:
197   - name: feeds-config
198     path: /opt/app/config/feeds
199   - name: drpub-config
200     path: /opt/app/config/dr_pubs
201
202 # Resource Limit Flavor -By Default Using Small
203 flavor: small
204
205 # Segregation for Different Environment (Small and Large)
206 resources:
207   small:
208     limits:
209       cpu: 1
210       memory: 1Gi
211     requests:
212       cpu: 500m
213       memory: 768Mi
214   large:
215     limits:
216       cpu: 2
217       memory: 2Gi
218     requests:
219       cpu: 1
220       memory: 1Gi
221   unlimited: {}
222
223 #Pods Service Account
224 serviceAccount:
225   nameOverride: dcae-datafile-collector
226   roles:
227     - read