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