7886ed75a87d446e1fc3a73db880def1c27eaf20
[oom.git] / kubernetes / dcaegen2-services / components / dcae-prh / values.yaml
1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2021 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 # initContainer images.
36 #################################################################
37 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
38 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43 # application image
44 image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.8.0
45 pullPolicy: Always
46
47 # log directory where logging sidecar should look for log files
48 # if path is set to null sidecar won't be deployed in spite of
49 # global.centralizedLoggingEnabled setting.
50 log:
51   path: /opt/app/prh/logs
52 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
53
54 # directory where TLS certs should be stored
55 # if absent, no certs will be retrieved and stored
56 certDirectory: /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.
61 tlsServer: true
62
63 secrets:
64   - uid: &aaiCredsUID aaicreds
65     type: basicAuth
66     login: '{{ .Values.aaiCreds.user }}'
67     password: '{{ .Values.aaiCreds.password }}'
68     passwordPolicy: required
69
70 # dependencies
71 readinessCheck:
72   wait_for:
73     - aaf-cm
74
75 # probe configuration
76 readiness:
77   initialDelaySeconds: 5
78   periodSeconds: 15
79   path: /heartbeat
80   scheme: HTTP
81   port: 8100
82
83 # service configuration
84 service:
85   type: ClusterIP
86   name: dcae-prh
87   ports:
88     - port: 8100
89       name: http
90
91 aaiCreds:
92   user: AAI
93   password: AAI
94
95 credentials:
96 - name: AAI_USER
97   uid: *aaiCredsUID
98   key: login
99 - name: AAI_PASSWORD
100   uid: *aaiCredsUID
101   key: password
102
103 customEnvVars:
104 - name: AUTH_HDR
105   value: "Basic `echo -n ${AAI_USER}:${AAI_PASSWORD} | base64`"
106
107 # initial application configuration
108 applicationConfig:
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"
115   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
117   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
123   aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
124   aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
125   aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
126   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
153 applicationEnv:
154   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
155
156 # Resource Limit flavor -By Default using small
157 flavor: small
158 # Segregation for Different environment (Small and Large)
159 resources:
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: {}
175
176 #Pods Service Account
177 serviceAccount:
178   nameOverride: dcae-prh
179   roles:
180     - read