blob: 7886ed75a87d446e1fc3a73db880def1c27eaf20 [file] [log] [blame]
Jack Lucasd41dbdb2021-02-16 11:07:28 -05001#============LICENSE_START========================================================
2# ================================================================================
3# Copyright (c) 2021 J. F. Lucas. All rights reserved.
Tomasz Wrobel0d893db2022-02-17 11:50:43 +01004# Copyright (c) 2022 Nokia. All rights reserved.
Jack Lucasd41dbdb2021-02-16 11:07:28 -05005# ================================================================================
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#################################################################
22global:
23 nodePortPrefix: 302
24 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010025 centralizedLoggingEnabled: true
Jack Lucasd41dbdb2021-02-16 11:07:28 -050026
27#################################################################
28# Filebeat configuration defaults.
29#################################################################
30filebeatConfig:
31 logstashServiceName: log-ls
32 logstashPort: 5044
33
34#################################################################
35# initContainer images.
36#################################################################
37tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040038consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
Jack Lucasd41dbdb2021-02-16 11:07:28 -050039
40#################################################################
41# Application configuration defaults.
42#################################################################
43# application image
Tomasz Wrobel0d893db2022-02-17 11:50:43 +010044image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.8.0
Jack Lucasd41dbdb2021-02-16 11:07:28 -050045pullPolicy: Always
46
47# log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010048# if path is set to null sidecar won't be deployed in spite of
49# global.centralizedLoggingEnabled setting.
50log:
51 path: /opt/app/prh/logs
52logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Jack Lucasd41dbdb2021-02-16 11:07:28 -050053
54# directory where TLS certs should be stored
55# if absent, no certs will be retrieved and stored
56certDirectory: /opt/app/prh/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.
61tlsServer: true
62
63secrets:
64 - uid: &aaiCredsUID aaicreds
65 type: basicAuth
66 login: '{{ .Values.aaiCreds.user }}'
67 password: '{{ .Values.aaiCreds.password }}'
68 passwordPolicy: required
69
70# dependencies
71readinessCheck:
72 wait_for:
Jack Lucasd41dbdb2021-02-16 11:07:28 -050073 - aaf-cm
74
75# probe configuration
76readiness:
77 initialDelaySeconds: 5
78 periodSeconds: 15
79 path: /heartbeat
80 scheme: HTTP
81 port: 8100
82
83# service configuration
84service:
85 type: ClusterIP
86 name: dcae-prh
87 ports:
88 - port: 8100
89 name: http
90
91aaiCreds:
92 user: AAI
93 password: AAI
94
95credentials:
96- name: AAI_USER
97 uid: *aaiCredsUID
98 key: login
99- name: AAI_PASSWORD
100 uid: *aaiCredsUID
101 key: password
102
103customEnvVars:
104- name: AUTH_HDR
105 value: "Basic `echo -n ${AAI_USER}:${AAI_PASSWORD} | base64`"
106
107# initial application configuration
108applicationConfig:
109 dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
110 dmaap.dmaapConsumerConfiguration.consumerId: "c12"
111 dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
112 dmaap.dmaapConsumerConfiguration.timeoutMs: -1
113 dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
114 dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
Remigiusz Janeczek3b9d8862021-08-10 13:14:14 +0200115 aai.aaiClientConfiguration.pnfUrl: https://aai.onap.svc.cluster.local:8443/aai/v23/network/pnfs/pnf
116 aai.aaiClientConfiguration.baseUrl: https://aai.onap.svc.cluster.local:8443/aai/v23
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500117 aai.aaiClientConfiguration.aaiHost: aai.onap.svc.cluster.local
118 aai.aaiClientConfiguration.aaiHostPortNumber: 8443
119 aai.aaiClientConfiguration.aaiProtocol: "https"
120 aai.aaiClientConfiguration.aaiUserName: ${AAI_USER}
121 aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD}
122 aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
Remigiusz Janeczek3b9d8862021-08-10 13:14:14 +0200123 aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500124 aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
Tomasz Wrobel57a143b2021-08-11 11:55:41 +0200125 aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500126 aai.aaiClientConfiguration.aaiHeaders:
127 X-FromAppId: "prh"
128 X-TransactionId: "9999"
129 Accept: "application/json"
130 Real-Time: "true"
131 Authorization: $AUTH_HDR
132 security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
133 security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
134 security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
135 security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
136 security.enableAaiCertAuth: false
137 security.enableDmaapCertAuth: false
138 streams_publishes:
139 pnf-update:
140 type: "message_router"
141 dmaap_info:
142 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE
143 pnf-ready:
144 type: "message_router"
145 dmaap_info:
146 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY
147 streams_subscribes:
148 ves-reg-output:
149 type: "message_router"
150 dmaap_info:
151 topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT
152
Remigiusz Janeczek92231d42021-08-27 16:41:56 +0200153applicationEnv:
154 CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
155
Jack Lucasd41dbdb2021-02-16 11:07:28 -0500156# Resource Limit flavor -By Default using small
157flavor: small
158# Segregation for Different environment (Small and Large)
159resources:
160 small:
161 limits:
162 cpu: 2
163 memory: 2Gi
164 requests:
165 cpu: 1
166 memory: 1Gi
167 large:
168 limits:
169 cpu: 4
170 memory: 4Gi
171 requests:
172 cpu: 2
173 memory: 2Gi
174 unlimited: {}
farida azmycb03ac72021-09-12 16:14:12 +0200175
176#Pods Service Account
177serviceAccount:
178 nameOverride: dcae-prh
179 roles:
180 - read