9a274153f2e4e2ea29b8daafbfe5f2a264bedbbc
[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 aaiCreds:
77   user: AAI
78   password: AAI
79
80 credentials:
81 - name: AAI_USER
82   uid: *aaiCredsUID
83   key: login
84 - name: AAI_PASSWORD
85   uid: *aaiCredsUID
86   key: password
87
88 # initial application configuration
89 applicationConfig:
90   dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
91   dmaap.dmaapConsumerConfiguration.consumerId: "c12"
92   dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
93   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
94   dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
95   dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
96   aai.aaiClientConfiguration.pnfUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23/network/pnfs/pnf
97   aai.aaiClientConfiguration.baseUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23
98   aai.aaiClientConfiguration.aaiHost: aai-internal.onap.svc.cluster.local
99   aai.aaiClientConfiguration.aaiHostPortNumber: 80
100   aai.aaiClientConfiguration.aaiProtocol: "http"
101   aai.aaiClientConfiguration.aaiUserName: ${AAI_USER}
102   aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD}
103   aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
104   aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
105   aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
106   aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
107   aai.aaiClientConfiguration.aaiHeaders:
108       X-FromAppId: "prh"
109       X-TransactionId: "9999"
110       Accept: "application/json"
111       Real-Time: "true"
112       Authorization: ${AUTH_HDR}
113   security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
114   security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
115   security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
116   security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
117   security.enableAaiCertAuth: false
118   security.enableDmaapCertAuth: false
119   streams_publishes:
120       pnf-update:
121         type: "message_router"
122         dmaap_info:
123           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE
124       pnf-ready:
125         type: "message_router"
126         dmaap_info:
127           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY
128   streams_subscribes:
129       ves-reg-output:
130         type: "message_router"
131         dmaap_info:
132           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT
133
134 applicationEnv:
135   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
136   AUTH_HDR: '{{ printf "Basic %s" (print .Values.aaiCreds.user ":" .Values.aaiCreds.password | b64enc) }}'
137
138 # Resource Limit flavor -By Default using small
139 flavor: small
140 # Segregation for Different environment (Small and Large)
141 resources:
142   small:
143     limits:
144       cpu: 2
145       memory: 2Gi
146     requests:
147       cpu: 1
148       memory: 1Gi
149   large:
150     limits:
151       cpu: 4
152       memory: 4Gi
153     requests:
154       cpu: 2
155       memory: 2Gi
156   unlimited: {}
157
158 #Pods Service Account
159 serviceAccount:
160   nameOverride: dcae-prh
161   roles:
162     - read