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