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