blob: 4f8ec771045720d2d79874e07dea0a5f6ab4a439 [file] [log] [blame]
Jack Lucasd41dbdb2021-02-16 11:07:28 -05001#============LICENSE_START========================================================
2# ================================================================================
Jack Lucas64da4e72023-03-03 14:46:05 -05003# Copyright (c) 2021-2023 J. F. Lucas. All rights reserved.
Tomasz Wrobel0d893db2022-02-17 11:50:43 +01004# Copyright (c) 2022 Nokia. All rights reserved.
sushant53d7136f12024-02-07 19:06:36 +05305# Copyright (c) 2024 Deutsche Telekom Intellectual Property. All rights reserved.
Jack Lucasd41dbdb2021-02-16 11:07:28 -05006# ================================================================================
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#################################################################
23global:
24 nodePortPrefix: 302
25 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010026 centralizedLoggingEnabled: true
Jack Lucasd41dbdb2021-02-16 11:07:28 -050027
28#################################################################
29# Filebeat configuration defaults.
30#################################################################
31filebeatConfig:
32 logstashServiceName: log-ls
33 logstashPort: 5044
34
35#################################################################
Jack Lucasd41dbdb2021-02-16 11:07:28 -050036# Application configuration defaults.
37#################################################################
38# application image
sushant53d7136f12024-02-07 19:06:36 +053039image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.10.1
Jack Lucasd41dbdb2021-02-16 11:07:28 -050040pullPolicy: Always
41
42# log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010043# if path is set to null sidecar won't be deployed in spite of
44# global.centralizedLoggingEnabled setting.
45log:
46 path: /opt/app/prh/logs
47logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Jack Lucasd41dbdb2021-02-16 11:07:28 -050048
Jack Lucasd41dbdb2021-02-16 11:07:28 -050049secrets:
50 - uid: &aaiCredsUID aaicreds
51 type: basicAuth
52 login: '{{ .Values.aaiCreds.user }}'
53 password: '{{ .Values.aaiCreds.password }}'
54 passwordPolicy: required
55
56# dependencies
57readinessCheck:
58 wait_for:
rope2525a7fbee2022-07-25 20:00:36 +010059 - message-router
Jack Lucasd41dbdb2021-02-16 11:07:28 -050060
61# probe configuration
62readiness:
63 initialDelaySeconds: 5
64 periodSeconds: 15
65 path: /heartbeat
66 scheme: HTTP
67 port: 8100
68
69# service configuration
70service:
71 type: ClusterIP
72 name: dcae-prh
73 ports:
74 - port: 8100
75 name: http
76
AndrewLambbd6ff6b2023-05-04 15:56:49 +010077serviceMesh:
78 authorizationPolicy:
79 authorizedPrincipals:
80 - serviceAccount: message-router-read
81
Jack Lucasd41dbdb2021-02-16 11:07:28 -050082aaiCreds:
83 user: AAI
84 password: AAI
85
86credentials:
87- name: AAI_USER
88 uid: *aaiCredsUID
89 key: login
90- name: AAI_PASSWORD
91 uid: *aaiCredsUID
92 key: password
93
Jack Lucasd41dbdb2021-02-16 11:07:28 -050094# initial application configuration
95applicationConfig:
96 dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
97 dmaap.dmaapConsumerConfiguration.consumerId: "c12"
98 dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
99 dmaap.dmaapConsumerConfiguration.timeoutMs: -1
100 dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
101 dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
rope2525a7fbee2022-07-25 20:00:36 +0100102 aai.aaiClientConfiguration.pnfUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23/network/pnfs/pnf
103 aai.aaiClientConfiguration.baseUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23
104 aai.aaiClientConfiguration.aaiHost: aai-internal.onap.svc.cluster.local
105 aai.aaiClientConfiguration.aaiHostPortNumber: 80
106 aai.aaiClientConfiguration.aaiProtocol: "http"
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500107 aai.aaiClientConfiguration.aaiUserName: ${AAI_USER}
108 aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD}
109 aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
Remigiusz Janeczek3b9d8862021-08-10 13:14:14 +0200110 aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500111 aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
Tomasz Wrobel57a143b2021-08-11 11:55:41 +0200112 aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500113 aai.aaiClientConfiguration.aaiHeaders:
114 X-FromAppId: "prh"
115 X-TransactionId: "9999"
116 Accept: "application/json"
117 Real-Time: "true"
Jack Lucasf86f6292022-06-08 09:12:29 -0400118 Authorization: ${AUTH_HDR}
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500119 security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
120 security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
121 security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
122 security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
123 security.enableAaiCertAuth: false
124 security.enableDmaapCertAuth: false
125 streams_publishes:
126 pnf-update:
127 type: "message_router"
128 dmaap_info:
129 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE
130 pnf-ready:
131 type: "message_router"
132 dmaap_info:
133 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY
134 streams_subscribes:
135 ves-reg-output:
136 type: "message_router"
137 dmaap_info:
138 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT
139
Remigiusz Janeczek92231d42021-08-27 16:41:56 +0200140applicationEnv:
141 CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
Jack Lucasf86f6292022-06-08 09:12:29 -0400142 AUTH_HDR: '{{ printf "Basic %s" (print .Values.aaiCreds.user ":" .Values.aaiCreds.password | b64enc) }}'
sushant53d7136f12024-02-07 19:06:36 +0530143 BOOTSTRAP_SERVERS: '{{ include "common.release" . }}-strimzi-kafka-bootstrap:9092'
144 JAAS_CONFIG:
145 externalSecret: true
146 externalSecretUid: '{{ include "common.name" . }}-ku'
147 key: sasl.jaas.config
148
149# Strimzi Kafka User config
150kafkaUser:
151 acls:
152 - name: OpenDCAE-c12
153 type: group
154 patternType: literal
155 operations: [Read]
156 - name: \"*\"
157 type: topic
158 patternType: literal
159 operations: [DescribeConfigs]
160 - name: unauthenticated.VES_PNFREG_OUTPUT
161 type: topic
162 patternType: literal
163 operations: [Read]
164 - name: unauthenticated.PNF_READY
165 type: topic
166 patternType: literal
167 operations: [Write]
168 - name: unauthenticated.PNF_UPDATE
169 type: topic
170 patternType: literal
171 operations: [Write]
172
173# Strimzi Kafka Topics
174kafkaTopic:
175 - name: unauthenticated.PNF_READY
176 strimziTopicName: unauthenticated.pnf-ready
177 - name: unauthenticated.PNF_UPDATE
178 strimziTopicName: unauthenticated.pnf-update
Remigiusz Janeczek92231d42021-08-27 16:41:56 +0200179
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500180# Resource Limit flavor -By Default using small
181flavor: small
182# Segregation for Different environment (Small and Large)
183resources:
184 small:
185 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200186 cpu: 1
Andreas Geissler555db9c2023-06-20 11:38:39 +0200187 memory: 3Gi
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500188 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200189 cpu: 0.5
190 memory: 3Gi
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500191 large:
192 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200193 cpu: 2
Andreas Geissler555db9c2023-06-20 11:38:39 +0200194 memory: 6Gi
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500195 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200196 cpu: 1
197 memory: 6Gi
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500198 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200199
200#Pods Service Account
201serviceAccount:
202 nameOverride: dcae-prh
203 roles:
204 - read