Merge "[DCAEMOD] 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     msoKey: 07a7159d3bf51a0e53be7a8f89699be7
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.global.app.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
124 aafConfig:
125   permission_user: 1000
126   permission_group: 999
127
128 aaf:
129   trustore: org.onap.so.trust.jks
130
131 #################################################################
132 # Application configuration defaults.
133 #################################################################
134
135 dbSecrets: &dbSecrets
136   userCredsExternalSecret: *dbUserCredsSecretName
137   adminCredsExternalSecret: *dbAdminCredsSecretName
138
139 # unused in this, just to pass to subcharts
140 dbCreds:
141   userName: so_user
142   adminName: so_admin
143
144 image: onap/so/api-handler-infra:1.7.10
145 pullPolicy: Always
146 replicaCount: 1
147 minReadySeconds: 10
148 containerPort: &containerPort 8080
149 logPath: ./logs/apih/
150 app: api-handler-infra
151 service:
152   type: NodePort
153   nodePort: 77
154   internalPort: *containerPort
155   externalPort: *containerPort
156   portName: so-apih-port
157 updateStrategy:
158   type: RollingUpdate
159   maxUnavailable: 1
160   maxSurge: 1
161
162 #################################################################
163 # soHelpers part
164 #################################################################
165 soHelpers:
166   nameOverride: so-apih-cert-init
167   certInitializer:
168     nameOverride: so-apih-cert-init
169   credsPath: /opt/app/osaaf/local
170   certSecret: *so-certs
171   containerPort: *containerPort
172
173 # Resource Limit flavor -By Default using small
174 flavor: small
175 # Segregation for Different environment (Small and Large)
176 persistence:
177   certificatesPath: /certificates
178 resources:
179   small:
180     limits:
181       cpu: 2000m
182       memory: 4Gi
183     requests:
184       cpu: 500m
185       memory: 1Gi
186   large:
187     limits:
188       cpu: 4000m
189       memory: 8Gi
190     requests:
191       cpu: 1000m
192       memory: 2Gi
193   unlimited: {}
194
195 nodeSelector: {}
196 affinity: {}
197
198 # application configuration
199 config:
200   logstashServiceName: log-ls
201   logstashPort: 5044
202
203 #Used only if localCluster is enabled. Instantiates SO's own cassandra cluster
204 #helm deploy demo local/onap --namespace onap --verbose --set so.enabled=true \
205 #                                                       --set so.global.mariadbGalera.localCluster=true \
206 #                                                       --set so.global.mariadbGalera.nameOverride=so-mariadb-galera \
207 #                                                       --set so.global.mariadbGalera.serviceName=so-mariadb-galera
208 mariadb-galera:
209   config:
210     mariadbRootPasswordExternalSecret: *dbRootPassSecretName
211   nameOverride: so-mariadb-galera
212   replicaCount: 1
213   service:
214     name: so-mariadb-galera
215   persistence:
216     mountSubPath: so/mariadb-galera/data
217     enabled: true
218
219 ingress:
220   enabled: false
221   service:
222     - baseaddr: 'so.api'
223       name: 'so'
224       port: 8080
225   config:
226     ssl: 'none'
227
228 mso:
229   adapters:
230     requestDb:
231       auth: Basic YnBlbDpwYXNzd29yZDEk
232   camundaAuth: AE2E9BE6EF9249085AF98689C4EE087736A5500629A72F35068FFB88813A023581DD6E765071F1C04075B36EA4213A
233   sdc:
234     client:
235       auth: 878785F4F31BC9CFA5AB52A172008212D8845ED2DE08AD5E56AF114720A4E49768B8F95CDA2EB971765D28EDCDAA24
236   aai:
237     auth: 6E081E10B1CA43A843E303733A74D9B23B601A6E22A21C7EF2C7F15A42F81A1A4E85E65268C2661F71321052C7F3E55B96A8E1E951F8BF6F
238   oof:
239     login: test
240     password: testpwd
241   so:
242     operationalEnv:
243       dmaap:
244         auth: 51EA5414022D7BE536E7516C4D1A6361416921849B72C0D6FC1C7F262FD9F2BBC2AD124190A332D9845A188AD80955567A4F975C84C221EEA8243BFD92FFE6896CDD1EA16ADD34E1E3D47D4A
245   health:
246     auth: basic bXNvX2FkbWlufHBhc3N3b3JkMSQ=
247
248 so-appc-orchestrator:
249   enabled: false
250   db:
251     <<: *dbSecrets
252
253 so-bpmn-infra:
254   db:
255     <<: *dbSecrets
256
257 so-catalog-db-adapter:
258   enabled: true
259   db:
260     <<: *dbSecrets
261
262 so-etsi-nfvo-ns-lcm:
263   enabled: true
264   db:
265     <<: *dbSecrets
266
267 so-monitoring:
268   enabled: true
269   db:
270     <<: *dbSecrets
271
272 so-openstack-adapter:
273   enabled: true
274   db:
275     <<: *dbSecrets
276
277 so-request-db-adapter:
278   db:
279     <<: *dbSecrets
280
281 so-sdc-controller:
282   db:
283     <<: *dbSecrets
284
285 so-sdnc-adapter:
286   enabled: true
287   db:
288     <<: *dbSecrets
289
290 so-ve-vnfm-adapter:
291   enabled: false
292
293 so-vfc-adapter:
294   enabled: true
295   db:
296     <<: *dbSecrets
297
298 so-nssmf-adapter:
299   enabled: true
300   db:
301     <<: *dbSecrets
302
303 so-oof-adapter:
304   enabled: true
305   db:
306     <<: *dbSecrets
307   mso:
308     msoKeySecret: *mso-key
309     camundaAuth: AE2E9BE6EF9249085AF98689C4EE087736A5500629A72F35068FFB88813A023581DD6E765071F1C04075B36EA4213A
310     oof:
311       authSecret: *mso-oof-auth
312
313 so-vnfm-adapter:
314   enabled: true
315
316 so-mariadb:
317   db:
318     rootPasswordExternalSecretLocalDb: *dbRootPassSecretName
319     rootPasswordExternalSecret: '{{ ternary .Values.db.rootPasswordExternalSecretLocalDb (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) .Values.global.mariadbGalera.localCluster }}'
320     backupCredsExternalSecret: *dbBackupCredsSecretName
321     userCredsExternalSecret: *dbUserCredsSecretName
322     adminCredsExternalSecret: *dbAdminCredsSecretName