[DCAEGEN2] Create Authorization Policies for DCAE
[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 serviceMesh:
129   authorizationPolicy:
130     authorizedPrincipals:
131       - serviceAccount: dcae-pm-mapper-read
132       - serviceAccount: message-router-read
133       - serviceAccount: istio-ingress
134         namespace: istio-ingress
135
136 # Data Router Publisher Credentials
137 drPubscriberCreds:
138   username: username
139   password: password
140
141 credentials:
142 - name: DR_USERNAME
143   uid: *drPubCredsUID
144   key: login
145 - name: DR_PASSWORD
146   uid: *drPubCredsUID
147   key: password
148
149 # Initial Application Configuration
150 applicationConfig:
151   dmaap.certificateConfig.keyCert: /opt/app/datafile/etc/cert/cert.p12
152   dmaap.certificateConfig.keyPasswordPath: /opt/app/datafile/etc/cert/p12.pass
153   dmaap.certificateConfig.trustedCa: /opt/app/datafile/etc/cert/trust.jks
154   dmaap.certificateConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass
155   dmaap.certificateConfig.enableCertAuth: false
156   dmaap.dmaapConsumerConfiguration.consumerGroup: OpenDcae-c12
157   dmaap.dmaapConsumerConfiguration.consumerId: C12
158   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
159   dmaap.security.enableDmaapCertAuth: false
160   dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/jks.pass
161   dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.jks
162   dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass
163   dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks
164   service_calls: []
165   sftp.security.strictHostKeyChecking: true
166   streams_publishes:
167     PM_MEAS_FILES:
168       dmaap_info:
169         publisher_id: ${DR_FILES_PUBLISHER_ID_0}
170         location: loc00
171         log_url: ${DR_LOG_URL_0}
172         publish_url: ${DR_FILES_PUBLISHER_URL_0}
173         username: ${DR_USERNAME}
174         password: ${DR_PASSWORD}
175       type: data_router
176   streams_subscribes:
177     dmaap_subscriber:
178       dmaap_info:
179         topic_url: "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
180       type: message_router
181
182 applicationEnv:
183   #CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
184   #Temporary Dummy CBS Port Value until internal SDK library is updated
185   CONFIG_BINDING_SERVICE_SERVICE_PORT: '0000'
186
187 # DataRouter Feed Configuration
188 drFeedConfig:
189   - feedName: bulk_pm_feed
190     owner: dcaecm
191     feedVersion: "0.0"
192     asprClassification: unclassified
193     feedDescription: DFC Feed Creation
194
195 # DataRouter Publisher Configuration
196 drPubConfig:
197   - feedName: bulk_pm_feed
198     username: ${DR_USERNAME}
199     userpwd: ${DR_PASSWORD}
200     dcaeLocationName: loc00
201
202 # ConfigMap Configuration for Feed, Dr_Publisher
203 volumes:
204   - name: feeds-config
205     path: /opt/app/config/feeds
206   - name: drpub-config
207     path: /opt/app/config/dr_pubs
208
209 # Resource Limit Flavor -By Default Using Small
210 flavor: small
211
212 # Segregation for Different Environment (Small and Large)
213 resources:
214   small:
215     limits:
216       cpu: 1
217       memory: 1Gi
218     requests:
219       cpu: 500m
220       memory: 768Mi
221   large:
222     limits:
223       cpu: 2
224       memory: 2Gi
225     requests:
226       cpu: 1
227       memory: 1Gi
228   unlimited: {}
229
230 #Pods Service Account
231 serviceAccount:
232   nameOverride: dcae-datafile-collector
233   roles:
234     - read