d44574a07b1bc7b3dcf8907d08eab3b95c596ddb
[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 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24   centralizedLoggingEnabled: true
25
26 #################################################################
27 # Filebeat configuration defaults.
28 #################################################################
29 filebeatConfig:
30   logstashServiceName: log-ls
31   logstashPort: 5044
32
33 #################################################################
34 # initContainer images.
35 #################################################################
36 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
37 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
38
39 #################################################################
40 # Application configuration defaults.
41 #################################################################
42 # application image
43 image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.7.1
44 pullPolicy: Always
45
46 # log directory where logging sidecar should look for log files
47 # if path is set to null sidecar won't be deployed in spite of
48 # global.centralizedLoggingEnabled setting.
49 log:
50   path: /opt/app/prh/logs
51 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
52
53 # directory where TLS certs should be stored
54 # if absent, no certs will be retrieved and stored
55 certDirectory: /opt/app/prh/etc/cert
56
57 # TLS role -- set to true if microservice acts as server
58 # If true, an init container will retrieve a server cert
59 # and key from AAF and mount them in certDirectory.
60 tlsServer: true
61
62 secrets:
63   - uid: &aaiCredsUID aaicreds
64     type: basicAuth
65     login: '{{ .Values.aaiCreds.user }}'
66     password: '{{ .Values.aaiCreds.password }}'
67     passwordPolicy: required
68
69 # dependencies
70 readinessCheck:
71   wait_for:
72     - aaf-cm
73
74 # probe configuration
75 readiness:
76   initialDelaySeconds: 5
77   periodSeconds: 15
78   path: /heartbeat
79   scheme: HTTP
80   port: 8100
81
82 # service configuration
83 service:
84   type: ClusterIP
85   name: dcae-prh
86   ports:
87     - port: 8100
88       name: http
89
90 aaiCreds:
91   user: AAI
92   password: AAI
93
94 credentials:
95 - name: AAI_USER
96   uid: *aaiCredsUID
97   key: login
98 - name: AAI_PASSWORD
99   uid: *aaiCredsUID
100   key: password
101
102 customEnvVars:
103 - name: AUTH_HDR
104   value: "Basic `echo -n ${AAI_USER}:${AAI_PASSWORD} | base64`"
105
106 # initial application configuration
107 applicationConfig:
108   dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
109   dmaap.dmaapConsumerConfiguration.consumerId: "c12"
110   dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
111   dmaap.dmaapConsumerConfiguration.timeoutMs: -1
112   dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
113   dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
114   aai.aaiClientConfiguration.pnfUrl: https://aai.onap.svc.cluster.local:8443/aai/v23/network/pnfs/pnf
115   aai.aaiClientConfiguration.baseUrl: https://aai.onap.svc.cluster.local:8443/aai/v23
116   aai.aaiClientConfiguration.aaiHost: aai.onap.svc.cluster.local
117   aai.aaiClientConfiguration.aaiHostPortNumber: 8443
118   aai.aaiClientConfiguration.aaiProtocol: "https"
119   aai.aaiClientConfiguration.aaiUserName: ${AAI_USER}
120   aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD}
121   aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
122   aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
123   aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
124   aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
125   aai.aaiClientConfiguration.aaiHeaders:
126       X-FromAppId: "prh"
127       X-TransactionId: "9999"
128       Accept: "application/json"
129       Real-Time: "true"
130       Authorization: $AUTH_HDR
131   security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
132   security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
133   security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
134   security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
135   security.enableAaiCertAuth: false
136   security.enableDmaapCertAuth: false
137   streams_publishes:
138       pnf-update:
139         type: "message_router"
140         dmaap_info:
141           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE
142       pnf-ready:
143         type: "message_router"
144         dmaap_info:
145           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY
146   streams_subscribes:
147       ves-reg-output:
148         type: "message_router"
149         dmaap_info:
150           topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT
151
152 applicationEnv:
153   CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml'
154
155 # Resource Limit flavor -By Default using small
156 flavor: small
157 # Segregation for Different environment (Small and Large)
158 resources:
159   small:
160     limits:
161       cpu: 2
162       memory: 2Gi
163     requests:
164       cpu: 1
165       memory: 1Gi
166   large:
167     limits:
168       cpu: 4
169       memory: 4Gi
170     requests:
171       cpu: 2
172       memory: 2Gi
173   unlimited: {}
174
175 #Pods Service Account
176 serviceAccount:
177   nameOverride: dcae-prh
178   roles:
179     - read