Merge "[COMMON] Add custom certs into AAF truststore"
[oom.git] / kubernetes / so / values.yaml
1 # Copyright © 2018 AT&T USA
2 # Copyright © 2020 Huawei
3 # Copyright © 2021 Orange
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 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   nodePortPrefixExt: 304
21   aafAgentImage: onap/aaf/aaf_agent:2.1.20
22   mariadbGalera:
23     nameOverride: mariadb-galera
24     serviceName: mariadb-galera
25     servicePort: '3306'
26     service: mariadb-galera
27     internalPort: '3306'
28     # mariadbRootPassword: secretpassword
29     # rootPasswordExternalSecret: some secret
30     #This flag allows SO to instantiate its own mariadb-galera cluster,
31     #serviceName and nameOverride should be so-mariadb-galera if this flag is enabled
32     localCluster: false
33   persistence:
34     mountPath: /dockerdata-nfs
35   #This configuration specifies Service and port for SDNC OAM interface
36   sdncOamService: sdnc-oam
37   sdncOamPort: 8282
38   #This configuration will run the migration. The configurations are for backing up the data
39   #from DB and then restoring it to the present versions preferred DB.
40   migration:
41     enabled: false
42     dbHost: mariadb-galera
43     dbPort: 3306
44     dbUser: root
45     dbPassword: secretpassword
46     # dbCredsExternalSecret: some secret
47   msbEnabled: true
48   security:
49     aaf:
50       enabled: false
51   aaf:
52     auth:
53       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
54       encrypted: 3EDC974C5CD7FE54C47C7490AF4D3B474CDD7D0FFA35A7ACDE3E209631E45F428976EAC0858874F17390A13149E63C90281DD8D20456
55   app:
56     siteName: onapheat
57     auth: 3EDC974C5CD7FE54C47C7490AF4D3B474CDD7D0FFA35A7ACDE3E209631E45F428976EAC0858874F17390A13149E63C90281DD8D20456
58     defaultCloudOwner: onap
59
60   certificates:
61     path: /etc/ssl/certs
62     share_path: /usr/local/share/ca-certificates/
63
64 readinessCheck:
65   wait_for:
66     - so-mariadb-config
67
68 #################################################################
69 # Secrets metaconfig
70 #################################################################
71 secrets:
72   - uid: db-root-pass
73     name: &dbRootPassSecretName '{{ include "common.release" . }}-so-db-root-pass'
74     type: password
75     externalSecret: '{{ .Values.global.mariadbGalera.localCluster | ternary
76       .Values.global.mariadbGalera.rootPasswordExternalSecret
77       (default (include "common.mariadb.secret.rootPassSecretName"
78         (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride))
79         .Values.global.mariadbGalera.rootPasswordExternalSecret)  }}'
80     password: '{{ .Values.global.mariadbGalera.mariadbRootpassword }}'
81   - uid: db-backup-creds
82     name: &dbBackupCredsSecretName '{{ include "common.release" . }}-so-db-backup-creds'
83     type: basicAuth
84     externalSecret: '{{ ternary .Values.global.migration.dbCredsExternalSecret "migrationDisabled" .Values.global.migration.enabled }}'
85     login: '{{ ternary .Values.global.migration.dbUser "migrationDisabled" .Values.global.migration.enabled }}'
86     password: '{{ ternary .Values.global.migration.dbPassword "migrationDisabled" .Values.global.migration.enabled }}'
87     passwordPolicy: required
88     annotations:
89       helm.sh/hook: pre-upgrade,pre-install
90       helm.sh/hook-weight: '0'
91       helm.sh/hook-delete-policy: before-hook-creation
92   - uid: db-user-creds
93     name: &dbUserCredsSecretName '{{ include "common.release" . }}-so-db-user-creds'
94     type: basicAuth
95     externalSecret: '{{ .Values.dbCreds.userCredsExternalSecret }}'
96     login: '{{ .Values.dbCreds.userName }}'
97     password: '{{ .Values.dbCreds.userPassword }}'
98     passwordPolicy: generate
99   - uid: db-admin-creds
100     name: &dbAdminCredsSecretName '{{ include "common.release" . }}-so-db-admin-creds'
101     type: basicAuth
102     externalSecret: '{{ .Values.dbCreds.adminCredsExternalSecret }}'
103     login: '{{ .Values.dbCreds.adminName }}'
104     password: '{{ .Values.dbCreds.adminPassword }}'
105     passwordPolicy: generate
106   - uid: 'mso-key'
107     name: &mso-key '{{ include "common.release" . }}-mso-key'
108     type: password
109     password: '{{ .Values.mso.msoKey }}'
110   - uid: mso-oof-auth
111     name: &mso-oof-auth '{{ include "common.release" . }}-mso-oof-auth'
112     type: basicAuth
113     login: '{{ .Values.mso.oof.login }}'
114     password: '{{ .Values.mso.oof.password }}'
115     passwordPolicy: required
116   - uid: server-actuator-creds
117     name: &actuator-secrets '{{ include "common.release" . }}-so-server-actuator-creds'
118     type: basicAuth
119     externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
120     login: '{{ .Values.server.actuator.username }}'
121     password: '{{ .Values.server.actuator.password }}'
122     passwordPolicy: required
123   - uid: server-bpel-creds
124     name: &bpel-secrets '{{ include "common.release" . }}-so-server-bpel-creds'
125     type: basicAuth
126     externalSecret: '{{ tpl (default "" .Values.server.bpelCredsExternalSecret) . }}'
127     login: '{{ .Values.server.bpel.username }}'
128     password: '{{ .Values.server.bpel.password }}'
129     passwordPolicy: required
130   - uid: so-aaf-creds
131     name: &aaf-secrets '{{ include "common.release" . }}-so-server-aaf-creds'
132     type: basicAuth
133     externalSecret: '{{ tpl (default "" .Values.server.aafCredsExternalSecret) . }}'
134     login: '{{ .Values.server.aaf.username }}'
135     password: '{{ .Values.server.aaf.password }}'
136     passwordPolicy: required
137   - uid: so-aai-creds
138     name: &aai-secrets '{{ include "common.release" . }}-so-server-aai-creds'
139     type: basicAuth
140     externalSecret: '{{ tpl (default "" .Values.server.aaiCredsExternalSecret) . }}'
141     login: '{{ .Values.server.aai.username }}'
142     password: '{{ .Values.server.aai.password }}'
143     passwordPolicy: required
144
145 aafConfig:
146   permission_user: 1000
147   permission_group: 999
148
149 aaf:
150   trustore: org.onap.so.trust.jks
151
152 #################################################################
153 # Application configuration defaults.
154 #################################################################
155
156 dbSecrets: &dbSecrets
157   userCredsExternalSecret: *dbUserCredsSecretName
158   adminCredsExternalSecret: *dbAdminCredsSecretName
159
160 # unused in this, just to pass to subcharts
161 dbCreds:
162   userName: so_user
163   adminName: so_admin
164
165 image: onap/so/api-handler-infra:1.8.2
166
167 server:
168   aaf:
169     username: so@so.onap.org
170     password: demo123456
171   # aafCredsExternalSecret: some secret
172   aai:
173     username: aai@aai.onap.org
174     password: demo123456!
175   # aaiCredsExternalSecret: some secret
176   actuator:
177     username: mso_admin
178     password: password1$
179   # actuatorCredsExternalSecret: some secret
180   bpel:
181     username: bpel
182     password: password1$
183   # bpelCredsExternalSecret: some secret
184
185 pullPolicy: Always
186 replicaCount: 1
187 minReadySeconds: 10
188 containerPort: &containerPort 8080
189 logPath: ./logs/apih/
190 app: api-handler-infra
191 service:
192   type: NodePort
193   nodePort: 77
194   internalPort: *containerPort
195   externalPort: *containerPort
196   portName: so-apih-port
197 updateStrategy:
198   type: RollingUpdate
199   maxUnavailable: 1
200   maxSurge: 1
201
202 #################################################################
203 # soHelpers part
204 #################################################################
205 soHelpers:
206   nameOverride: so-apih-cert-init
207   certInitializer:
208     nameOverride: so-apih-cert-init
209   credsPath: /opt/app/osaaf/local
210   containerPort: *containerPort
211
212 # Resource Limit flavor -By Default using small
213 flavor: small
214 # Segregation for Different environment (Small and Large)
215 persistence:
216   certificatesPath: /certificates
217 resources:
218   small:
219     limits:
220       cpu: 2000m
221       memory: 4Gi
222     requests:
223       cpu: 500m
224       memory: 1Gi
225   large:
226     limits:
227       cpu: 4000m
228       memory: 8Gi
229     requests:
230       cpu: 1000m
231       memory: 2Gi
232   unlimited: {}
233
234 nodeSelector: {}
235 affinity: {}
236
237 # application configuration
238 config:
239   logstashServiceName: log-ls
240   logstashPort: 5044
241
242 #Used only if localCluster is enabled. Instantiates SO's own cassandra cluster
243 #helm deploy demo local/onap --namespace onap --verbose --set so.enabled=true \
244 #                                                       --set so.global.mariadbGalera.localCluster=true \
245 #                                                       --set so.global.mariadbGalera.nameOverride=so-mariadb-galera \
246 #                                                       --set so.global.mariadbGalera.serviceName=so-mariadb-galera
247 mariadb-galera:
248   rootUser:
249     externalSecret: *dbRootPassSecretName
250   nameOverride: &so-mariadb so-mariadb-galera
251   replicaCount: 1
252   persistence:
253     mountSubPath: so/mariadb-galera/data
254     enabled: true
255   serviceAccount:
256     nameOverride: *so-mariadb
257
258 ingress:
259   enabled: false
260   service:
261     - baseaddr: 'so.api'
262       name: 'so'
263       port: 8080
264   config:
265     ssl: 'none'
266
267 mso:
268   adapters:
269     requestDb:
270       auth: Basic YnBlbDpwYXNzd29yZDEk
271   camundaAuth: AE2E9BE6EF9249085AF98689C4EE087736A5500629A72F35068FFB88813A023581DD6E765071F1C04075B36EA4213A
272   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
273   sdc:
274     client:
275       auth: 878785F4F31BC9CFA5AB52A172008212D8845ED2DE08AD5E56AF114720A4E49768B8F95CDA2EB971765D28EDCDAA24
276   aai:
277     auth: 6E081E10B1CA43A843E303733A74D9B23B601A6E22A21C7EF2C7F15A42F81A1A4E85E65268C2661F71321052C7F3E55B96A8E1E951F8BF6F
278   oof:
279     login: test
280     password: testpwd
281   so:
282     operationalEnv:
283       dmaap:
284         auth: 51EA5414022D7BE536E7516C4D1A6361416921849B72C0D6FC1C7F262FD9F2BBC2AD124190A332D9845A188AD80955567A4F975C84C221EEA8243BFD92FFE6896CDD1EA16ADD34E1E3D47D4A
285   health:
286     auth: basic bXNvX2FkbWlufHBhc3N3b3JkMSQ=
287
288 so-appc-orchestrator:
289   enabled: false
290   server:
291     actuatorCredsExternalSecret: *actuator-secrets
292   db:
293     <<: *dbSecrets
294
295 so-bpmn-infra:
296   db:
297     <<: *dbSecrets
298
299 so-catalog-db-adapter:
300   enabled: true
301   db:
302     <<: *dbSecrets
303
304 so-cnf-adapter:
305   enabled: true
306   db:
307     <<: *dbSecrets
308   server:
309     aafCredsExternalSecret: *aaf-secrets
310     aaiCredsExternalSecret: *aai-secrets
311     actuatorCredsExternalSecret: *actuator-secrets
312   mso:
313     msoKeySecret: *mso-key
314
315 so-etsi-nfvo-ns-lcm:
316   enabled: true
317   db:
318     <<: *dbSecrets
319
320 so-mariadb:
321   db:
322     rootPasswordExternalSecretLocalDb: *dbRootPassSecretName
323     rootPasswordExternalSecret: '{{ ternary .Values.db.rootPasswordExternalSecretLocalDb (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) .Values.global.mariadbGalera.localCluster }}'
324     backupCredsExternalSecret: *dbBackupCredsSecretName
325     userCredsExternalSecret: *dbUserCredsSecretName
326     adminCredsExternalSecret: *dbAdminCredsSecretName
327
328 so-admin-cockpit:
329   enabled: true
330   db:
331     <<: *dbSecrets
332
333 so-nssmf-adapter:
334   enabled: true
335   server:
336     actuatorCredsExternalSecret: *actuator-secrets
337     bpelCredsExternalSecret: *bpel-secrets
338   db:
339     <<: *dbSecrets
340
341 so-oof-adapter:
342   enabled: true
343   db:
344     <<: *dbSecrets
345   mso:
346     msoKeySecret: *mso-key
347     camundaAuth: AE2E9BE6EF9249085AF98689C4EE087736A5500629A72F35068FFB88813A023581DD6E765071F1C04075B36EA4213A
348     oof:
349       authSecret: *mso-oof-auth
350
351 so-openstack-adapter:
352   enabled: true
353   db:
354     <<: *dbSecrets
355
356 so-request-db-adapter:
357   db:
358     <<: *dbSecrets
359
360 so-sdc-controller:
361   db:
362     <<: *dbSecrets
363
364 so-sdnc-adapter:
365   enabled: true
366   db:
367     <<: *dbSecrets
368   mso:
369     msoKeySecret: *mso-key
370
371 so-ve-vnfm-adapter:
372   enabled: false
373
374 so-etsi-sol005-adapter:
375   enabled: true
376   db:
377     <<: *dbSecrets
378
379 so-etsi-sol003-adapter:
380   enabled: true