37a1045c82256ab57997ab84369900745a4f1029
[oom.git] / kubernetes / dcaegen2-services / components / dcae-pm-mapper / 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: &aafCredsUID aafcreds
40     type: basicAuth
41     login: '{{ .Values.aafCreds.identity }}'
42     password: '{{ .Values.aafCreds.password }}'
43     passwordPolicy: required
44   - uid: &drSubCredsUID drsubcreds
45     type: basicAuth
46     login: '{{ .Values.drSubscriberCreds.username }}'
47     password: '{{ .Values.drSubscriberCreds.password }}'
48     passwordPolicy: required
49
50 #################################################################
51 # InitContainer Images.
52 #################################################################
53 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
54
55 #################################################################
56 # Application Configuration Defaults.
57 #################################################################
58 # Application Image
59 image: onap/org.onap.dcaegen2.services.pm-mapper:1.8.0
60 pullPolicy: Always
61
62 # Log directory where logging sidecar should look for log files
63 # if path is set to null sidecar won't be deployed in spite of
64 # global.centralizedLoggingEnabled setting.
65 log:
66   path: /var/log/ONAP/dcaegen2/services/pm-mapper
67 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
68
69 # Directory where TLS certs should be stored
70 # if absent, no certs will be retrieved and stored
71 certDirectory: /opt/app/pm-mapper/etc/cert
72
73 # TLS role -- set to true if microservice acts as server
74 # If true, an init container will retrieve a server cert
75 # and key from AAF and mount them in certDirectory.
76 tlsServer: true
77
78 # Dependencies
79 readinessCheck:
80   wait_for:
81     containers:
82       - aaf-cm
83       - dmaap-bc
84       - dmaap-provisioning-job
85       - dcae-datafile-collector
86
87 # Probe Configuration
88 readiness:
89   initialDelaySeconds: 10
90   periodSeconds: 15
91   timeoutSeconds: 1
92   path: /healthcheck
93   scheme: HTTP
94   port: 8081
95
96 # Service Configuration
97 service:
98   type: ClusterIP
99   name: dcae-pm-mapper
100   both_tls_and_plain: true
101   ports:
102     - name: https
103       port: 8443
104       plain_port: 8081
105       port_protocol: http
106
107 # AAF Credentials
108 aafCreds:
109   identity: dcae@dcae.onap.org
110   password: demo123456!
111
112 # Data Router Subscriber Credentials
113 drSubscriberCreds:
114   username: username
115   password: password
116
117 credentials:
118 - name: AAF_IDENTITY
119   uid: *aafCredsUID
120   key: login
121 - name: AAF_PASSWORD
122   uid: *aafCredsUID
123   key: password
124 - name: DR_USERNAME
125   uid: *drSubCredsUID
126   key: login
127 - name: DR_PASSWORD
128   uid: *drSubCredsUID
129   key: password
130
131 # Initial Application Configuration
132 applicationConfig:
133   enable_tls: true
134   enable_http: true
135   aaf_identity: ""
136   aaf_password: ""
137   pm-mapper-filter: "{ \"filters\":[] }"
138   key_store_path: /opt/app/pm-mapper/etc/cert/cert.jks
139   key_store_pass_path: /opt/app/pm-mapper/etc/cert/jks.pass
140   trust_store_path: /opt/app/pm-mapper/etc/cert/trust.jks
141   trust_store_pass_path: /opt/app/pm-mapper/etc/cert/trust.pass
142   dmaap_dr_delete_endpoint: https://dmaap-dr-node:8443/delete
143   streams_publishes:
144     dmaap_publisher:
145       type: message_router
146       dmaap_info:
147         client_id: ${MR_FILES_PUBLISHER_CLIENT_ID_0}
148         location: san-francisco
149         client_role: org.onap.dcae.pmPublisher
150         topic_url: http://message-router:3904/events/unauthenticated.PERFORMANCE_MEASUREMENTS
151   streams_subscribes:
152     dmaap_subscriber:
153       type: data_router
154       dmaap_info:
155         subscriber_id: ${DR_FILES_SUBSCRIBER_ID_0}
156         decompress: true
157         privileged: true
158         username: ${DR_USERNAME}
159         password: ${DR_PASSWORD}
160         location: san-francisco
161         delivery_url: http://dcae-pm-mapper:8081/delivery
162
163 # DataRouter Feed Configuration
164 drFeedConfig:
165   - feedName: bulk_pm_feed
166     owner: dcaecm
167     feedVersion: "0.0"
168     asprClassification: unclassified
169     feedDescription: DFC Feed Creation
170
171 # DataRouter Subscriber Configuration
172 drSubConfig:
173   - feedName: bulk_pm_feed
174     decompress: true
175     username: ${DR_USERNAME}
176     userpwd: ${DR_PASSWORD}
177     dcaeLocationName: loc00
178     privilegedSubscriber: true
179     deliveryURL: http://dcae-pm-mapper:8081/delivery
180
181
182 # ConfigMap Configuration for Dr Feed, Subscriber, MR Topics
183 volumes:
184   - name: feeds-config
185     path: /opt/app/config/feeds
186   - name: drsub-config
187     path: /opt/app/config/dr_subs
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: 1
200       memory: 1Gi
201   large:
202     limits:
203       cpu: 2
204       memory: 2Gi
205     requests:
206       cpu: 2
207       memory: 2Gi
208   unlimited: {}
209
210 #Pods Service Account
211 serviceAccount:
212   nameOverride: dcae-pm-mapper
213   roles:
214     - read