Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / cds / components / cds-blueprints-processor / values.yaml
1 # Copyright (c) 2019 IBM, Bell Canada
2 # Copyright (c) 2020 Samsung Electronics
3 # Modification Copyright © 2022-2023 Nordix Foundation
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
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   mariadbGalera: &mariadbGalera
22     # flag to enable the DB creation via mariadb-operator
23     useOperator: true
24     #This flag allows NBI to instantiate its own mariadb-galera cluster
25     #When changing it to "true", also set "globalCluster: false"
26     #as the dependency check will not work otherwise (Chart.yaml)
27     localCluster: true
28     globalCluster: false
29     service: mariadb-galera
30     internalPort: 3306
31     nameOverride: mariadb-galera
32   # image pull policy
33   pullPolicy: Always
34   persistence:
35     mountPath: /dockerdata-nfs
36   # This configuration specifies Service and port for SDNC OAM interface
37   sdncOamService: sdnc-oam
38   sdncOamPort: 8282
39   # This concerns CDS/AAI communication through HTTP when TLS is not being needed
40   # Port value should match the one in aai/values.yml : service.externalPlainPort
41   aaiData:
42     ExternalPlainPort: 80 # when TLS is not needed
43     ServiceName: aai  # domain
44     # http://aai:80 or https://aai:443
45
46   #enable importCustomCerts to add custom CA to blueprint processor pod
47   #importCustomCertsEnabled: true
48
49   #use below configmap to add custom CA certificates
50   #certificates with *.pem will be added to JAVA truststore $JAVA_HOME/lib/security/cacerts in the pod
51   #certificates with *.crt will be added to /etc/ssl/certs/ca-certificates.crt in the pod
52   #customCertsConfigMap: onap-cds-blueprints-processor-configmap
53
54 #################################################################
55 # Secrets metaconfig
56 #################################################################
57 secrets:
58   - uid: 'cds-db-user-creds'
59     type: basicAuth
60     externalSecret: '{{ tpl (default "" .Values.config.cdsDB.dbCredsExternalSecret) . }}'
61     login: '{{ .Values.config.cdsDB.dbUser }}'
62     password: '{{ .Values.config.cdsDB.dbPassword }}'
63     passwordPolicy: required
64   - uid: 'sdnc-db-root-pass'
65     type: password
66     externalSecret: '{{ tpl (default "" .Values.config.sdncDB.dbRootPassExternalSecret) . }}'
67     password: '{{ .Values.config.sdncDB.dbRootPass }}'
68     passwordPolicy: required
69   - uid: cps-creds
70     type: basicAuth
71     externalSecret: '{{ tpl (default "" .Values.config.cps.cpsUserExternalSecret) . }}'
72     login: '{{ .Values.config.cps.cpsUsername }}'
73     password: '{{ .Values.config.cps.cpsPassword }}'
74     passwordPolicy: required
75
76 #################################################################
77 # Application configuration defaults.
78 #################################################################
79 # application image
80 image: onap/ccsdk-blueprintsprocessor:1.5.3
81 pullPolicy: Always
82
83 # flag to enable debugging - application support required
84 debugEnabled: false
85
86 # application configuration
87 config:
88   appConfigDir: /opt/app/onap/config
89   sdncDB:
90     dbService: mariadb-galera
91     dbPort: 3306
92     dbName: sdnctl
93     # dbRootPass: Custom root password
94     dbRootPassExternalSecret: '{{ include "common.mariadb.secret.rootPassSecretName" ( dict "dot" . "chartName" .Values.config.sdncDB.dbService ) }}'
95   cdsDB:
96     dbServer: cds-db
97     dbPort: 3306
98     dbName: sdnctl
99     dbUser: sdnctl
100     dbPassword: sdnctl
101     # dbCredsExternalSecret: <some secret name>
102     # dbRootPassword: password
103     # dbRootPassExternalSecret
104   cps:
105     cpsUsername: ''
106     cpsPassword: ''
107     cpsUserExternalSecret: '{{ include "common.release" . }}-cps-core-app-user-creds'
108
109 # default number of instances
110 replicaCount: 1
111
112 nodeSelector: {}
113
114 affinity: {}
115
116 # Strimzi KafkaUser config
117 kafkaUser:
118   acls:
119     - name: cds-bp-processor
120       type: group
121       operations: [Read]
122     - name: cds.blueprint-processor
123       type: topic
124       patternType: prefix
125       operations: [Read, Write]
126 # Strimzi KafkaTopic config
127 kafkaTopic:
128   - name: cds.blueprint-processor.self-service-api.request
129   - name: cds.blueprint-processor.self-service-api.response
130   - name: cds.blueprint-processor.self-service-api.audit.request
131   - name: cds.blueprint-processor.self-service-api.audit.response
132
133
134 containerHttpPort: &svc_http_port 8080
135 containerGrpcPort: &svc_grpc_port 9111
136 containerTcpPort: &svc_tcp_port 5701
137
138 service:
139   http:
140     type: ClusterIP
141     portName: http
142     internalPort: *svc_http_port
143     externalPort: *svc_http_port
144   grpc:
145     type: ClusterIP
146     portName: grpc
147     internalPort: *svc_grpc_port
148     externalPort: *svc_grpc_port
149   cluster:
150     type: ClusterIP
151     portName: tcp-cluster
152     internalPort: *svc_tcp_port
153     externalPort: *svc_tcp_port
154   port: *svc_http_port
155
156 # probe configuration parameters
157 startup:
158   initialDelaySeconds: 10
159   failureThreshold: 30
160   periodSeconds: 10
161   port: *svc_http_port
162
163 liveness:
164   initialDelaySeconds: 1
165   periodSeconds: 20
166   timeoutSeconds: 30
167   # necessary to disable liveness probe when setting breakpoints
168   # in debugger so K8s doesn't restart unresponsive container
169   enabled: false
170   port: *svc_http_port
171
172 readiness:
173   initialDelaySeconds: 120
174   periodSeconds: 10
175   timeoutSeconds: 20
176   port: *svc_http_port
177
178 persistence:
179   volumeReclaimPolicy: Retain
180   accessMode: ReadWriteMany
181   size: 2Gi
182   enabled: true
183   mountSubPath: cds/blueprints/deploy
184   deployedBlueprint: /opt/app/onap/blueprints/deploy
185
186 cluster:
187   # Cannot have cluster enabled if the replicaCount is not at least 3
188   enabled: false
189   clusterName: cds-cluster
190   # Defines the number of node to be part of the CP subsystem/raft algorithm. This value should be
191   # between 3 and 7 only.
192   groupSize: 3
193
194 ingress:
195   enabled: false
196   service:
197     - baseaddr: "cds-blueprintsprocessor-api"
198       name: "cds-blueprints-processor-http"
199       port: 8080
200       config:
201         ssl: "none"
202
203 logback:
204   rootLogLevel: INFO
205   logger:
206     springframework: INFO
207     springframeworkWeb: INFO
208     springframeworkSecurityWebauthentication: INFO
209     hibernate: INFO
210     onapCcsdkCds: INFO
211
212 flavor: small
213
214 resources:
215   small:
216     limits:
217       cpu: "1"
218       memory: "1.8Gi"
219     requests:
220       cpu: "0.5"
221       memory: "1.8Gi"
222   large:
223     limits:
224       cpu: "2"
225       memory: "3.6Gi"
226     requests:
227       cpu: "1"
228       memory: "3.6Gi"
229   unlimited: {}
230
231 readinessCheck:
232   wait_for:
233     services:
234       - '{{ .Values.global.mariadbGalera.service }}'
235
236 #Pods Service Account
237 serviceAccount:
238   nameOverride: cds-blueprints-processor
239   roles:
240     - read
241
242 # workflow store flag
243 workflow:
244   storeEnabled: false
245
246 tracing:
247   collector:
248     baseUrl: http://jaeger-collector.istio-system:9411
249   sampling:
250     probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
251   ignorePatterns:
252     - .*/execution-service/health-check