[SO] Add helm chart for SO-ETSI-NFVO-NS-LCM
[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   repository: nexus3.onap.org:10001
21   readinessImage: onap/oom/readiness:3.0.1
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   soBaseImage: onap/so/base-image:1.0
25   aafAgentImage: onap/aaf/aaf_agent:2.1.20
26   mariadbGalera:
27     nameOverride: mariadb-galera
28     serviceName: mariadb-galera
29     servicePort: "3306"
30     # mariadbRootPassword: secretpassword
31     # rootPasswordExternalSecret: some secret
32     #This flag allows SO to instantiate its own mariadb-galera cluster,
33     #serviceName and nameOverride should be so-mariadb-galera if this flag is enabled
34     localCluster: false
35   persistence:
36     mountPath: /dockerdata-nfs
37   #This configuration specifies Service and port for SDNC OAM interface
38   sdncOamService: sdnc-oam
39   sdncOamPort: 8282
40   #This configuration will run the migration. The configurations are for backing up the data
41   #from DB and then restoring it to the present versions preferred DB.
42   migration:
43     enabled: false
44     dbHost: mariadb-galera
45     dbPort: 3306
46     dbUser: root
47     dbPassword: secretpassword
48     # dbCredsExternalSecret: some secret
49   msbEnabled: true
50   security:
51     aaf:
52       enabled: false
53   aaf:
54     auth:
55       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
56       encrypted: 3EDC974C5CD7FE54C47C7490AF4D3B474CDD7D0FFA35A7ACDE3E209631E45F428976EAC0858874F17390A13149E63C90281DD8D20456
57   app:
58     siteName: onapheat
59     auth: 3EDC974C5CD7FE54C47C7490AF4D3B474CDD7D0FFA35A7ACDE3E209631E45F428976EAC0858874F17390A13149E63C90281DD8D20456
60     defaultCloudOwner: onap
61     msoKey: 07a7159d3bf51a0e53be7a8f89699be7
62   client:
63     certs:
64       truststore: /app/client/org.onap.so.trust.jks
65       keystore: /app/client/org.onap.so.jks
66       trustStorePassword: LHN4Iy5DKlcpXXdWZ0pDNmNjRkhJIzpI
67       keyStorePassword: c280b25hcA==
68   certificates:
69     path: /etc/ssl/certs
70     share_path: /usr/local/share/ca-certificates/
71
72 #################################################################
73 # Secrets metaconfig
74 #################################################################
75 secrets:
76   - uid: db-root-pass
77     name: &dbRootPassSecretName '{{ include "common.release" . }}-so-db-root-pass'
78     type: password
79     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 }}'
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: "so-onap-certs"
107     name: &so-certs '{{ include "common.release" . }}-so-certs'
108     externalSecret: '{{ tpl (default "" .Values.certSecret) . }}'
109     type: generic
110     filePaths:
111       - resources/config/certificates/msb-ca.crt
112
113 aafConfig:
114   permission_user: 1000
115   permission_group: 999
116
117 aaf:
118   trustore: org.onap.so.trust.jks
119
120 #################################################################
121 # Application configuration defaults.
122 #################################################################
123
124 dbSecrets: &dbSecrets
125   userCredsExternalSecret: *dbUserCredsSecretName
126   adminCredsExternalSecret: *dbAdminCredsSecretName
127
128 # unused in this, just to pass to subcharts
129 dbCreds:
130   userName: so_user
131   adminName: so_admin
132
133 repository: nexus3.onap.org:10001
134 image: onap/so/api-handler-infra:1.6.4
135 pullPolicy: Always
136 replicaCount: 1
137 minReadySeconds: 10
138 containerPort: &containerPort 8080
139 logPath: ./logs/apih/
140 app: api-handler-infra
141 service:
142   type: NodePort
143   nodePort: 77
144   internalPort: *containerPort
145   externalPort: *containerPort
146   portName: so-apih-port
147 updateStrategy:
148   type: RollingUpdate
149   maxUnavailable: 1
150   maxSurge: 1
151
152 #################################################################
153 # soHelpers part
154 #################################################################
155 soHelpers:
156   nameOverride: so-apih-cert-init
157   certInitializer:
158     nameOverride: so-apih-cert-init
159   credsPath: /opt/app/osaaf/local
160   certSecret: *so-certs
161   containerPort: *containerPort
162
163 # Resource Limit flavor -By Default using small
164 flavor: small
165 # Segregation for Different environment (Small and Large)
166 persistence:
167   certificatesPath: /certificates
168 resources:
169   small:
170     limits:
171       cpu: 2000m
172       memory: 4Gi
173     requests:
174       cpu: 500m
175       memory: 1Gi
176   large:
177     limits:
178       cpu: 4000m
179       memory: 8Gi
180     requests:
181       cpu: 1000m
182       memory: 2Gi
183   unlimited: {}
184
185 nodeSelector: {}
186 affinity: {}
187
188 # application configuration
189 config:
190   logstashServiceName: log-ls
191   logstashPort: 5044
192
193 #Used only if localCluster is enabled. Instantiates SO's own cassandra cluster
194 #helm deploy demo local/onap --namespace onap --verbose --set so.enabled=true \
195 #                                                       --set so.global.mariadbGalera.localCluster=true \
196 #                                                       --set so.global.mariadbGalera.nameOverride=so-mariadb-galera \
197 #                                                       --set so.global.mariadbGalera.serviceName=so-mariadb-galera
198 mariadb-galera:
199   config:
200     mariadbRootPasswordExternalSecret: *dbRootPassSecretName
201   nameOverride: so-mariadb-galera
202   replicaCount: 1
203   service:
204     name: so-mariadb-galera
205   persistence:
206     mountSubPath: so/mariadb-galera/data
207     enabled: true
208
209 ingress:
210   enabled: false
211   service:
212     - baseaddr: "so.api"
213       name: "so"
214       port: 8080
215   config:
216     ssl: "none"
217
218 mso:
219   adapters:
220     requestDb:
221       auth: Basic YnBlbDpwYXNzd29yZDEk
222   camundaAuth: AE2E9BE6EF9249085AF98689C4EE087736A5500629A72F35068FFB88813A023581DD6E765071F1C04075B36EA4213A
223   sdc:
224     client:
225       auth: 878785F4F31BC9CFA5AB52A172008212D8845ED2DE08AD5E56AF114720A4E49768B8F95CDA2EB971765D28EDCDAA24
226   aai:
227     auth: 6E081E10B1CA43A843E303733A74D9B23B601A6E22A21C7EF2C7F15A42F81A1A4E85E65268C2661F71321052C7F3E55B96A8E1E951F8BF6F
228   so:
229     operationalEnv:
230       dmaap:
231         auth: 51EA5414022D7BE536E7516C4D1A6361416921849B72C0D6FC1C7F262FD9F2BBC2AD124190A332D9845A188AD80955567A4F975C84C221EEA8243BFD92FFE6896CDD1EA16ADD34E1E3D47D4A
232   health:
233     auth: basic bXNvX2FkbWlufHBhc3N3b3JkMSQ=
234
235 so-appc-orchestrator:
236   enabled: true
237   db:
238     <<: *dbSecrets
239
240 so-bpmn-infra:
241   db:
242     <<: *dbSecrets
243
244 so-catalog-db-adapter:
245   enabled: true
246   db:
247     <<: *dbSecrets
248
249 so-etsi-nfvo-ns-lcm:
250   enabled: true
251
252 so-monitoring:
253   enabled: true
254   db:
255     <<: *dbSecrets
256
257 so-openstack-adapter:
258   enabled: true
259   db:
260     <<: *dbSecrets
261
262 so-request-db-adapter:
263   db:
264     <<: *dbSecrets
265
266 so-sdc-controller:
267   db:
268     <<: *dbSecrets
269
270 so-sdnc-adapter:
271   enabled: true
272   db:
273     <<: *dbSecrets
274
275 so-ve-vnfm-adapter:
276   enabled: true
277
278 so-vfc-adapter:
279   enabled: true
280   db:
281     <<: *dbSecrets
282
283 so-nssmf-adapter:
284   enabled: true
285   db:
286     <<: *dbSecrets
287
288 so-vnfm-adapter:
289   enabled: true
290
291 so-mariadb:
292   db:
293     rootPasswordExternalSecretLocalDb: *dbRootPassSecretName
294     rootPasswordExternalSecret: '{{ ternary .Values.db.rootPasswordExternalSecretLocalDb (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) .Values.global.mariadbGalera.localCluster }}'
295     backupCredsExternalSecret: *dbBackupCredsSecretName
296     userCredsExternalSecret: *dbUserCredsSecretName
297     adminCredsExternalSecret: *dbAdminCredsSecretName