16fd772dd5f7c95393d5641facf9c6d8329b2e13
[oom.git] / kubernetes / dcaegen2-services / components / dcae-prh / values.yaml
1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2021-2023 J. F. Lucas. All rights reserved.
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 # Application configuration defaults.
36 #################################################################
37 # application image
38 image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.9.0
39 pullPolicy: Always
40
41 # log directory where logging sidecar should look for log files
42 # if path is set to null sidecar won't be deployed in spite of
43 # global.centralizedLoggingEnabled setting.
44 log:
45   path: /opt/app/prh/logs
46 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
47
48 secrets:
49   - uid: &aaiCredsUID aaicreds
50     type: basicAuth
51     login: '{{ .Values.aaiCreds.user }}'
52     password: '{{ .Values.aaiCreds.password }}'
53     passwordPolicy: required
54
55 # dependencies
56 readinessCheck:
57   wait_for:
58     - message-router
59
60 # probe configuration
61 readiness:
62   initialDelaySeconds: 5
63   periodSeconds: 15
64   path: /heartbeat
65   scheme: HTTP
66   port: 8100
67
68 # service configuration
69 service:
70   type: ClusterIP
71   name: dcae-prh
72   ports:
73     - port: 8100
74       name: http
75
76 serviceMesh:
77   authorizationPolicy:
78     authorizedPrincipals:
79       - serviceAccount: message-router-read
80
81 aaiCreds:
82   user: AAI
83   password: AAI
84
85 credentials:
86 - name: AAI_USER
87   uid: *aaiCredsUID
88   key: login
89 - name: AAI_PASSWORD
90   uid: *aaiCredsUID
91   key: password
92
93 # initial application configuration
94 applicationConfig:
95   dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
96   dmaap.dmaapConsumerConfiguration.consumerId: "c12"
97   dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
98   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
99   dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
100   dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
101   aai.aaiClientConfiguration.pnfUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23/network/pnfs/pnf
102   aai.aaiClientConfiguration.baseUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23
103   aai.aaiClientConfiguration.aaiHost: aai-internal.onap.svc.cluster.local
104   aai.aaiClientConfiguration.aaiHostPortNumber: 80
105   aai.aaiClientConfiguration.aaiProtocol: "http"
106   aai.aaiClientConfiguration.aaiUserName: ${AAI_USER}
107   aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD}
108   aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
109   aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
110   aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
111   aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
112   aai.aaiClientConfiguration.aaiHeaders:
113       X-FromAppId: "prh"
114       X-TransactionId: "9999"
115       Accept: "application/json"
116       Real-Time: "true"
117       Authorization: ${AUTH_HDR}
118   security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
119   security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
120   security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
121   security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
122   security.enableAaiCertAuth: false
123   security.enableDmaapCertAuth: false
124   streams_publishes:
125       pnf-update:
126         type: "message_router"
127         dmaap_info:
128           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE
129       pnf-ready:
130         type: "message_router"
131         dmaap_info:
132           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY
133   streams_subscribes:
134       ves-reg-output:
135         type: "message_router"
136         dmaap_info:
137           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT
138
139 applicationEnv:
140   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
141   AUTH_HDR: '{{ printf "Basic %s" (print .Values.aaiCreds.user ":" .Values.aaiCreds.password | b64enc) }}'
142
143 # Resource Limit flavor -By Default using small
144 flavor: small
145 # Segregation for Different environment (Small and Large)
146 resources:
147   small:
148     limits:
149       cpu: 1
150       memory: 3Gi
151     requests:
152       cpu: 0.5
153       memory: 3Gi
154   large:
155     limits:
156       cpu: 2
157       memory: 6Gi
158     requests:
159       cpu: 1
160       memory: 6Gi
161   unlimited: {}
162
163 #Pods Service Account
164 serviceAccount:
165   nameOverride: dcae-prh
166   roles:
167     - read