[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / cds / charts / 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 repositories
25   repository: nexus3.onap.org:10001
26
27   # readiness check
28   readinessImage: onap/oom/readiness:3.0.1
29
30   # image pull policy
31   pullPolicy: Always
32
33   persistence:
34     mountPath: /dockerdata-nfs
35
36   # envsusbt
37   envsubstImage: dibi/envsubst
38
39   #This configuration specifies Service and port for SDNC OAM interface
40   sdncOamService: sdnc-oam
41   sdncOamPort: 8282
42
43 #################################################################
44 # Secrets metaconfig
45 #################################################################
46 secrets:
47   - uid: 'cds-db-user-creds'
48     type: basicAuth
49     externalSecret: '{{ tpl (default "" .Values.config.cdsDB.dbCredsExternalSecret) . }}'
50     login: '{{ .Values.config.cdsDB.dbUser }}'
51     password: '{{ .Values.config.cdsDB.dbPassword }}'
52     passwordPolicy: required
53   - uid: 'sdnc-db-root-pass'
54     type: password
55     externalSecret: '{{ tpl (default "" .Values.config.sdncDB.dbRootPassExternalSecret) . }}'
56     password: '{{ .Values.config.sdncDB.dbRootPass }}'
57     passwordPolicy: required
58
59 #################################################################
60 # Application configuration defaults.
61 #################################################################
62 # application image
63 repository: nexus3.onap.org:10001
64 image: onap/ccsdk-blueprintsprocessor:1.0.1
65 pullPolicy: Always
66
67 # flag to enable debugging - application support required
68 debugEnabled: false
69
70 # application configuration
71 config:
72   appConfigDir: /opt/app/onap/config
73   useScriptCompileCache: false
74   sdncDB:
75     dbService: mariadb-galera
76     dbPort: 3306
77     dbName: sdnctl
78     #dbRootPass: Custom root password
79     dbRootPassExternalSecret: '{{ include "common.mariadb.secret.rootPassSecretName" ( dict "dot" . "chartName" .Values.config.sdncDB.dbService ) }}'
80   cdsDB:
81     dbServer: cds-db
82     dbPort: 3306
83     dbName: sdnctl
84     # dbUser: sdnctl
85     # dbPassword: sdnctl
86     # dbCredsExternalSecret: <some secret name>
87     # dbRootPassword: password
88     # dbRootPassExternalSecret
89
90 # default number of instances
91 replicaCount: 3
92
93 nodeSelector: {}
94
95 affinity: {}
96
97 # flag for kafka-listener dependency. Set to true if you are using message-router otherwise set to false if you are using
98 # custom kafka cluster.
99 dmaapEnabled: true
100
101
102 # probe configuration parameters
103 liveness:
104   initialDelaySeconds: 120
105   periodSeconds: 20
106   timeoutSeconds: 20
107   # necessary to disable liveness probe when setting breakpoints
108   # in debugger so K8s doesn't restart unresponsive container
109   enabled: true
110
111 readiness:
112   initialDelaySeconds: 120
113   periodSeconds: 10
114   timeoutSeconds: 20
115
116 service:
117   http:
118     type: ClusterIP
119     portName: blueprints-processor-http
120     internalPort: 8080
121     externalPort: 8080
122   grpc:
123     type: ClusterIP
124     portName: blueprints-processor-grpc
125     internalPort: 9111
126     externalPort: 9111
127   cluster:
128     type: ClusterIP
129     portName: blueprints-processor-cluster
130     internalPort: 5701
131     externalPort: 5701
132
133 persistence:
134   volumeReclaimPolicy: Retain
135   accessMode: ReadWriteMany
136   size: 2Gi
137   enabled: true
138   mountSubPath: cds/blueprints/deploy
139   deployedBlueprint: /opt/app/onap/blueprints/deploy
140
141 cluster:
142   # Cannot have cluster enabled if the replicaCount is not at least 3
143   # AND config value useScriptCompileCache is not set to false
144   enabled: true
145
146   clusterName: cds-cluster
147
148   # Defines the number of node to be part of the CP subsystem/raft algorithm. This value should be
149   # between 3 and 7 only.
150   groupSize: 3
151
152 ingress:
153   enabled: false
154   service:
155     - baseaddr: "blueprintsprocessorhttp"
156       name: "cds-blueprints-processor-http"
157       port: 8080
158   config:
159     ssl: "none"
160
161 logback:
162   rootLogLevel: INFO
163   logger:
164     springframework: INFO
165     springframeworkWeb: INFO
166     springframeworkSecurityWebauthentication: INFO
167     hibernate: INFO
168     onapCcsdkCds: INFO
169
170 flavor: small
171
172 resources:
173   small:
174     limits:
175       cpu: 2
176       memory: 4Gi
177     requests:
178       cpu: 1
179       memory: 1Gi
180   large:
181     limits:
182       cpu: 4
183       memory: 8Gi
184     requests:
185       cpu: 2
186       memory: 4Gi
187   unlimited: {}