[DMAAP] DMaaP ServiceMesh compatibility
[oom.git] / kubernetes / cds / components / cds-blueprints-processor / values.yaml
1 # Copyright (c) 2019 IBM, Bell Canada
2 # Copyright (c) 2020 Samsung Electronics
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   # Change to an unused port prefix range to prevent port conflicts
21   # with other instances running within the same k8s cluster
22   nodePortPrefixExt: 304
23
24   # image pull policy
25   pullPolicy: Always
26
27   persistence:
28     mountPath: /dockerdata-nfs
29
30   #This configuration specifies Service and port for SDNC OAM interface
31   sdncOamService: sdnc-oam
32   sdncOamPort: 8282
33
34   #AAF is enabled by default
35   #aafEnabled: true
36
37   #enable importCustomCerts to add custom CA to blueprint processor pod
38   #importCustomCertsEnabled: true
39
40   #use below configmap to add custom CA certificates
41   #certificates with *.pem will be added to JAVA truststore $JAVA_HOME/lib/security/cacerts in the pod
42   #certificates with *.crt will be added to /etc/ssl/certs/ca-certificates.crt in the pod
43   #customCertsConfigMap: onap-cds-blueprints-processor-configmap
44
45 #################################################################
46 # Secrets metaconfig
47 #################################################################
48 secrets:
49   - uid: 'cds-db-user-creds'
50     type: basicAuth
51     externalSecret: '{{ tpl (default "" .Values.config.cdsDB.dbCredsExternalSecret) . }}'
52     login: '{{ .Values.config.cdsDB.dbUser }}'
53     password: '{{ .Values.config.cdsDB.dbPassword }}'
54     passwordPolicy: required
55   - uid: 'sdnc-db-root-pass'
56     type: password
57     externalSecret: '{{ tpl (default "" .Values.config.sdncDB.dbRootPassExternalSecret) . }}'
58     password: '{{ .Values.config.sdncDB.dbRootPass }}'
59     passwordPolicy: required
60
61 #################################################################
62 # AAF part
63 #################################################################
64 certInitializer:
65   nameOverride: cds-blueprints-processor-cert-initializer
66   aafDeployFqi: deployer@people.osaaf.org
67   aafDeployPass: demo123456!
68   # aafDeployCredsExternalSecret: some secret
69   fqdn: sdnc-cds
70   fqi: sdnc-cds@sdnc-cds.onap.org
71   public_fqdn: sdnc-cds.onap.org
72   cadi_longitude: "0.0"
73   cadi_latitude: "0.0"
74   app_ns: org.osaaf.aaf
75   credsPath: /opt/app/osaaf/local
76   fqi_namespace: org.onap.sdnc-cds
77   #enable below if we need custom CA to be added to blueprint processor pod
78   #importCustomCertsEnabled: true
79   #truststoreMountpath: /opt/onap/cds
80   #truststoreOutputFileName: truststoreONAPall.jks
81   aaf_add_config: >
82     /opt/app/aaf_config/bin/agent.sh;
83     /opt/app/aaf_config/bin/agent.sh local showpass
84     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
85
86 #################################################################
87 # Application configuration defaults.
88 #################################################################
89 # application image
90 image: onap/ccsdk-blueprintsprocessor:1.3.0
91 pullPolicy: Always
92
93 # flag to enable debugging - application support required
94 debugEnabled: false
95
96 # application configuration
97 config:
98   appConfigDir: /opt/app/onap/config
99   sdncDB:
100     dbService: mariadb-galera
101     dbPort: 3306
102     dbName: sdnctl
103     #dbRootPass: Custom root password
104     dbRootPassExternalSecret: '{{ include "common.mariadb.secret.rootPassSecretName" ( dict "dot" . "chartName" .Values.config.sdncDB.dbService ) }}'
105   cdsDB:
106     dbServer: cds-db
107     dbPort: 3306
108     dbName: sdnctl
109     dbUser: sdnctl
110     dbPassword: sdnctl
111     # dbCredsExternalSecret: <some secret name>
112     # dbRootPassword: password
113     # dbRootPassExternalSecret
114
115 # default number of instances
116 replicaCount: 1
117
118 nodeSelector: {}
119
120 affinity: {}
121
122 # flag for kafka-listener dependency. Set to true if you are using message-router otherwise set to false if you are using
123 # custom kafka cluster.
124 dmaapEnabled: true
125
126
127 # probe configuration parameters
128 startup:
129   initialDelaySeconds: 10
130   failureThreshold: 30
131   periodSeconds: 10
132
133 liveness:
134   initialDelaySeconds: 0
135   periodSeconds: 20
136   timeoutSeconds: 20
137   # necessary to disable liveness probe when setting breakpoints
138   # in debugger so K8s doesn't restart unresponsive container
139   enabled: true
140
141 readiness:
142   initialDelaySeconds: 120
143   periodSeconds: 10
144   timeoutSeconds: 20
145
146 service:
147   http:
148     type: ClusterIP
149     portName: blueprints-processor-http
150     internalPort: 8080
151     externalPort: 8080
152   grpc:
153     type: ClusterIP
154     portName: blueprints-processor-grpc
155     internalPort: 9111
156     externalPort: 9111
157   cluster:
158     type: ClusterIP
159     portName: blueprints-processor-cluster
160     internalPort: 5701
161     externalPort: 5701
162
163 persistence:
164   volumeReclaimPolicy: Retain
165   accessMode: ReadWriteMany
166   size: 2Gi
167   enabled: true
168   mountSubPath: cds/blueprints/deploy
169   deployedBlueprint: /opt/app/onap/blueprints/deploy
170
171 cluster:
172   # Cannot have cluster enabled if the replicaCount is not at least 3
173   enabled: false
174
175   clusterName: cds-cluster
176
177   # Defines the number of node to be part of the CP subsystem/raft algorithm. This value should be
178   # between 3 and 7 only.
179   groupSize: 3
180
181 ingress:
182   enabled: false
183   service:
184     - baseaddr: "blueprintsprocessorhttp"
185       name: "cds-blueprints-processor-http"
186       port: 8080
187   config:
188     ssl: "none"
189
190 logback:
191   rootLogLevel: INFO
192   logger:
193     springframework: INFO
194     springframeworkWeb: INFO
195     springframeworkSecurityWebauthentication: INFO
196     hibernate: INFO
197     onapCcsdkCds: INFO
198
199 flavor: small
200
201 resources:
202   small:
203     limits:
204       cpu: 2
205       memory: 4Gi
206     requests:
207       cpu: 1
208       memory: 1Gi
209   large:
210     limits:
211       cpu: 4
212       memory: 8Gi
213     requests:
214       cpu: 2
215       memory: 4Gi
216   unlimited: {}
217
218 #Pods Service Account
219 serviceAccount:
220   nameOverride: cds-blueprints-processor
221   roles:
222     - read
223
224 # workflow store flag
225 workflow:
226   storeEnabled: false