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