0d28683feb5b0295f226f1623f8f254a53ad7c62
[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 # =========================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ================================= LICENSE_END ===========================
18
19 #################################################################
20 # Global Configuration Defaults.
21 #################################################################
22 global:
23   nodePortPrefix: 302
24   nodePortPrefixExt: 304
25   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
37 secrets:
38   - uid: &aafCredsUID aafcreds
39     type: basicAuth
40     login: '{{ .Values.aafCreds.identity }}'
41     password: '{{ .Values.aafCreds.password }}'
42     passwordPolicy: required
43   - uid: &drSubCredsUID drsubcreds
44     type: basicAuth
45     login: '{{ .Values.drSubscriberCreds.username }}'
46     password: '{{ .Values.drSubscriberCreds.password }}'
47     passwordPolicy: required
48
49 #################################################################
50 # InitContainer Images.
51 #################################################################
52 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
53 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
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: HTTPS
94   port: 8443
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: ""
139   key_store_pass_path: ""
140   trust_store_path: ""
141   trust_store_pass_path: ""
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: https://dcae-pm-mapper:8443/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: https://dcae-pm-mapper:8443/delivery
180
181 # MessageRouter Topic, Publisher Configuration
182 mrTopicsConfig:
183   - topicName: PERFORMANCE_MEASUREMENTS
184     topicDescription: PM Mapper publishes perf3gpp VES PM Events to authenticated MR topic
185     owner: dcaecm
186     tnxEnabled: false
187     clients:
188       - dcaeLocationName: san-francisco
189         clientRole: org.onap.dcae.pmPublisher
190         action:
191           - pub
192           - view
193
194 # ConfigMap Configuration for Dr Feed, Subscriber, MR Topics
195 volumes:
196   - name: feeds-config
197     path: /opt/app/config/feeds
198   - name: drsub-config
199     path: /opt/app/config/dr_subs
200   - name: topics-config
201     path: /opt/app/config/topics
202
203 # Resource Limit Flavor -By Default Using Small
204 flavor: small
205
206 # Segregation for Different Environment (Small and Large)
207 resources:
208   small:
209     limits:
210       cpu: 1
211       memory: 1Gi
212     requests:
213       cpu: 1
214       memory: 1Gi
215   large:
216     limits:
217       cpu: 2
218       memory: 2Gi
219     requests:
220       cpu: 2
221       memory: 2Gi
222   unlimited: {}
223
224 #Pods Service Account
225 serviceAccount:
226   nameOverride: dcae-pm-mapper
227   roles:
228     - read