[SDNC] Deploy external TLC cert in ODL
[oom.git] / kubernetes / sdnc / values.yaml
1 # Copyright © 2020 Samsung Electronics, highstreet technologies GmbH
2 # Copyright © 2017 Amdocs, Bell Canada
3 #
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 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   nodePortPrefix: 302
21   nodePortPrefixExt: 304
22   repository: nexus3.onap.org:10001
23   readinessImage: onap/oom/readiness:3.0.1
24   loggingRepository: docker.elastic.co
25   loggingImage: beats/filebeat:5.5.0
26   persistence:
27     mountPath: /dockerdata-nfs
28   aafEnabled: true
29   # envsusbt
30   envsubstImage: dibi/envsubst
31   mariadbGalera:
32     #This flag allows SO to instantiate its own mariadb-galera cluster
33     #If shared instance is used, this chart assumes that DB already exists
34     localCluster: false
35     service: mariadb-galera
36     internalPort: 3306
37     nameOverride: mariadb-galera
38   # Enabling CMPv2
39   cmpv2Enabled: true
40   platform:
41     certServiceClient:
42       image: onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.0.0
43       secret:
44         name: oom-cert-service-client-tls-secret
45         mountPath: /etc/onap/oom/certservice/certs/
46       envVariables:
47         # Certificate related
48         cert_path: /var/custom-certs
49         cmpv2Organization: "Linux-Foundation"
50         cmpv2OrganizationalUnit: "ONAP"
51         cmpv2Location: "San-Francisco"
52         cmpv2Country: "US"
53         # Client configuration related
54         caName: "RA"
55         common_name: "sdnc.simpledemo.onap.org"
56         requestURL: "https://oom-cert-service:8443/v1/certificate/"
57         requestTimeout: "30000"
58         keystorePath: "/etc/onap/oom/certservice/certs/certServiceClient-keystore.jks"
59         outputType: "P12"
60         keystorePassword: "secret"
61         truststorePath: "/etc/onap/oom/certservice/certs/truststore.jks"
62         truststorePassword: "secret"
63
64 #################################################################
65 # Secrets metaconfig
66 #################################################################
67 secrets:
68   - uid: db-root-password
69     name: '{{ include "common.release" . }}-sdnc-db-root-password'
70     type: password
71     externalSecret: '{{ .Values.global.mariadbGalera.localCluster |
72       ternary (default (include "common.mariadb.secret.rootPassSecretName"
73       (dict "dot" . "chartName"
74       (index .Values "mariadb-galera" "nameOverride")))
75       (index .Values "mariadb-galera" "config"
76       "mariadbRootPasswordExternalSecret"))
77       (include "common.mariadb.secret.rootPassSecretName"
78       (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) }}'
79     password: '{{ (index .Values "mariadb-galera" "config" "mariadbRootPassword") }}'
80   - uid: db-secret
81     name: &dbSecretName '{{ include "common.release" . }}-sdnc-db-secret'
82     type: basicAuth
83     # This is a nasty trick that allows you override this secret using external one
84     # with the same field that is used to pass this to subchart
85     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
86     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
87     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
88   - uid: odl-creds
89     name: &odlCredsSecretName '{{ include "common.release" . }}-sdnc-odl-creds'
90     type: basicAuth
91     externalSecret: '{{ .Values.config.odlCredsExternalSecret }}'
92     login: '{{ .Values.config.odlUser }}'
93     password: '{{ .Values.config.odlPassword }}'
94     # For now this is left hardcoded but should be revisited in a future
95     passwordPolicy: required
96   - uid: netbox-apikey
97     type: password
98     externalSecret: '{{ .Values.config.netboxApikeyExternalSecret }}'
99     password: '{{ .Values.config.netboxApikey }}'
100     passwordPolicy: required
101   - uid: aai-user-creds
102     type: basicAuth
103     externalSecret: '{{ .Values.config.aaiCredsExternalSecret}}'
104     login: '{{ .Values.config.aaiUser }}'
105     password: '{{ .Values.config.aaiPassword }}'
106     passwordPolicy: required
107   - uid: modeling-user-creds
108     type: basicAuth
109     externalSecret: '{{ .Values.config.modelingCredsExternalSecret}}'
110     login: '{{ .Values.config.modelingUser }}'
111     password: '{{ .Values.config.modelingPassword }}'
112     passwordPolicy: required
113   - uid: restconf-creds
114     type: basicAuth
115     externalSecret: '{{ .Values.config.restconfCredsExternalSecret}}'
116     login: '{{ .Values.config.restconfUser }}'
117     password: '{{ .Values.config.restconfPassword }}'
118     passwordPolicy: required
119   - uid: ansible-creds
120     name: &ansibleSecretName '{{ include "common.release" . }}-sdnc-ansible-creds'
121     type: basicAuth
122     externalSecret: '{{ .Values.config.ansibleCredsExternalSecret}}'
123     login: '{{ .Values.config.ansibleUser }}'
124     password: '{{ .Values.config.ansiblePassword }}'
125     passwordPolicy: required
126   - uid: scaleout-creds
127     type: basicAuth
128     externalSecret: '{{ .Values.config.scaleoutCredsExternalSecret}}'
129     login: '{{ .Values.config.scaleoutUser }}'
130     password: '{{ .Values.config.scaleoutPassword }}'
131     passwordPolicy: required
132 #################################################################
133 # Application configuration defaults.
134 #################################################################
135 # application images
136 repository: nexus3.onap.org:10001
137 pullPolicy: Always
138 image: onap/sdnc-image:1.8.4
139 busyboxRepository: docker.io
140 busyboxImage: busybox:1.30
141
142 # flag to enable debugging - application support required
143 debugEnabled: false
144
145 # application configuration
146 config:
147   odlUid: 100
148   odlGid: 101
149   odlUser: admin
150   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
151   # odlCredsExternalSecret: some secret
152   netboxApikey: onceuponatimeiplayedwithnetbox20180814
153   # netboxApikeyExternalSecret: some secret
154   aaiUser: sdnc@sdnc.onap.org
155   aaiPassword: demo123456!
156   # aaiCredsExternalSecret: some secret
157   modelingUser: ccsdkapps
158   modelingPassword: ccsdkapps
159   # modelingCredsExternalSecret: some secret
160   restconfUser: admin
161   restconfPassword: admin
162   # restconfCredsExternalSecret: some secret
163   scaleoutUser: admin
164   scaleoutPassword: admin
165   # scaleoutExternalSecret: some secret
166   ansibleUser: sdnc
167   ansiblePassword: sdnc
168   # ansibleCredsExternalSecret: some secret
169   dbSdnctlDatabase: &sdncDbName sdnctl
170   enableClustering: true
171   sdncHome: /opt/onap/sdnc
172   binDir: /opt/onap/sdnc/bin
173   etcDir: /opt/onap/sdnc/data
174   geoEnabled: false
175 # if geoEnabled is set to true here, mysql.geoEnabled must be set to true
176 # if geoEnabled is set to true the following 3 values must be set to their proper values
177   myODLCluster: 127.0.0.1
178   peerODLCluster: 127.0.0.1
179   isPrimaryCluster: true
180   configDir: /opt/onap/sdnc/data/properties
181   ccsdkConfigDir: /opt/onap/ccsdk/data/properties
182   dmaapTopic: SUCCESS
183   dmaapPort: 3904
184   logstashServiceName: log-ls
185   logstashPort: 5044
186   ansibleServiceName: sdnc-ansible-server
187   ansiblePort: 8000
188   javaHome: /usr/lib/jvm/java-1.8-openjdk
189
190   odl:
191     etcDir: /opt/opendaylight/etc
192     binDir: /opt/opendaylight/bin
193     salConfigDir: /opt/opendaylight/system/org/opendaylight/controller/sal-clustering-config
194     salConfigVersion: 1.9.1
195     akka:
196       seedNodeTimeout: 15s
197       circuitBreaker:
198         maxFailures: 10
199         callTimeout: 90s
200         resetTimeout: 30s
201       recoveryEventTimeout: 90s
202     datastore:
203       persistentActorRestartMinBackoffInSeconds: 10
204       persistentActorRestartMaxBackoffInSeconds: 40
205       persistentActorRestartResetBackoffInSeconds: 20
206       shardTransactionCommitTimeoutInSeconds: 120
207       shardIsolatedLeaderCheckIntervalInMillis: 30000
208       operationTimeoutInSeconds: 120
209     javaOptions:
210       maxGCPauseMillis: 100
211       parallelGCThreads : 3
212       numberGGLogFiles: 10
213         # enables sdnr functionality
214   sdnr:
215     enabled: true
216     # mode: web - SDNC contains device manager only plus dedicated webserver service for ODLUX (default),
217     # mode: dm - SDNC contains sdnr device manager + ODLUX components
218     mode: dm
219     # sdnronly: true starts sdnc container with odl and sdnrwt features only
220     sdnronly: false
221     sdnrdbTrustAllCerts: true
222     mountpointRegistrarEnabled: false
223     mountpointStateProviderEnabled: false
224
225
226
227 # dependency / sub-chart configuration
228 certInitializer:
229   nameOverride: sdnc-cert-initializer
230   truststoreMountpath: /opt/onap/sdnc/data/stores
231   fqdn: "sdnc"
232   app_ns: "org.osaaf.aaf"
233   fqi: "sdnc@sdnc.onap.org"
234   fqi_namespace: org.onap.sdnc
235   public_fqdn: "sdnc.onap.org"
236   aafDeployFqi: "deployer@people.osaaf.org"
237   aafDeployPass: demo123456!
238   cadi_latitude: "38.0"
239   cadi_longitude: "-72.0"
240   credsPath: /opt/app/osaaf/local
241   aaf_add_config: >
242     cd /opt/app/osaaf/local;
243     /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} | grep cadi_keystore_password= | cut -d= -f 2 > {{ .Values.credsPath }}/.pass 2>&1
244
245 # dependency / sub-chart configuration
246 network-name-gen:
247   enabled: true
248 mariadb-galera: &mariadbGalera
249   nameOverride: sdnc-db
250   config: &mariadbGaleraConfig
251     rootPasswordExternalSecret: '{{ ternary (include "common.release" .)-sdnc-db-root-password "" .Values.global.mariadbGalera.localCluster }}'
252     userName: sdnctl
253     userCredentialsExternalSecret: *dbSecretName
254   service:
255     name: sdnc-dbhost
256     internalPort: 3306
257   sdnctlPrefix: sdnc
258   persistence:
259     mountSubPath: sdnc/mariadb-galera
260     enabled: true
261   replicaCount: 1
262
263 cds:
264   enabled: false
265
266 dmaap-listener:
267   enabled: true
268   nameOverride: sdnc-dmaap-listener
269   mariadb-galera:
270     <<: *mariadbGalera
271     config:
272       <<: *mariadbGaleraConfig
273       mysqlDatabase: *sdncDbName
274   config:
275     sdncChartName: sdnc
276     dmaapPort: 3904
277     sdncPort: 8282
278     configDir: /opt/onap/sdnc/data/properties
279     odlCredsExternalSecret: *odlCredsSecretName
280
281 ueb-listener:
282   enabled: true
283   mariadb-galera:
284     <<: *mariadbGalera
285     config:
286       <<: *mariadbGaleraConfig
287       mysqlDatabase: *sdncDbName
288   nameOverride: sdnc-ueb-listener
289   config:
290     sdncPort: 8282
291     sdncChartName: sdnc
292     configDir: /opt/onap/sdnc/data/properties
293     odlCredsExternalSecret: *odlCredsSecretName
294
295 sdnc-ansible-server:
296   enabled: true
297   config:
298     restCredsExternalSecret: *ansibleSecretName
299   mariadb-galera:
300     <<: *mariadbGalera
301     config:
302       <<: *mariadbGaleraConfig
303       mysqlDatabase: ansible
304   service:
305     name: sdnc-ansible-server
306     internalPort: 8000
307
308 dgbuilder:
309   enabled: true
310   nameOverride: sdnc-dgbuilder
311   certInitializer:
312     nameOverride: sdnc-dgbuilder-cert-initializer
313   config:
314     db:
315       dbName: *sdncDbName
316       rootPasswordExternalSecret: '{{ ternary (printf "%s-sdnc-db-root-password" (include "common.release" .)) (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" "mariadb-galera")) .Values.global.mariadbGalera.localCluster }}'
317       userCredentialsExternalSecret: *dbSecretName
318     dbPodName: mariadb-galera
319     dbServiceName: mariadb-galera
320     # This should be revisited and changed to plain text
321     dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5
322   mariadb-galera:
323   service:
324     name: sdnc-dgbuilder
325     nodePort: "03"
326
327   ingress:
328     enabled: false
329     service:
330       - baseaddr: "sdnc-dgbuilder"
331         name: "sdnc-dgbuilder"
332         port: 3000
333       - baseaddr: "sdnc-web-service"
334         name: "sdnc-web-service"
335         port: 8443
336     config:
337       ssl: "redirect"
338
339
340
341 # local elasticsearch cluster
342 localElasticCluster: true
343 elasticsearch:
344   nameOverride: sdnrdb
345   name: sdnrdb-cluster
346   certInitializer:
347     fqdn: "sdnc"
348     fqi_namespace: org.onap.sdnc
349     fqi: "sdnc@sdnc.onap.org"
350   service:
351     name: sdnrdb
352   master:
353     replicaCount: 3
354     # dedicatednode: "yes"
355     # working as master node only, in this case increase replicaCount for elasticsearch-data
356     # dedicatednode: "no"
357     # handles master and data node functionality
358     dedicatednode: "no"
359     nameOverride: sdnrdb
360 # enable
361 sdnc-web:
362   enabled: false
363 # default number of instances
364 replicaCount: 1
365
366 nodeSelector: {}
367
368 affinity: {}
369
370 # probe configuration parameters
371 liveness:
372   initialDelaySeconds: 10
373   periodSeconds: 10
374   # necessary to disable liveness probe when setting breakpoints
375   # in debugger so K8s doesn't restart unresponsive container
376   enabled: true
377
378 readiness:
379   initialDelaySeconds: 10
380   periodSeconds: 10
381
382 service:
383   type: NodePort
384   name: sdnc
385   portName: sdnc
386   internalPort: 8181
387   internalPort2: 8101
388   internalPort3: 8080
389   internalPort4: 8443
390
391   #port
392   externalPort: 8282
393
394   externalPort2: 8202
395
396   externalPort3: 8280
397
398   externalPort4: 8443
399   nodePort4: 67
400
401   clusterPort: 2550
402   clusterPort2: 2650
403   clusterPort3: 2681
404
405   geoNodePort1: 61
406   geoNodePort2: 62
407   geoNodePort3: 63
408   geoNodePort4: 64
409   geoNodePort5: 65
410   geoNodePort6: 66
411
412 ## Persist data to a persitent volume
413 persistence:
414   enabled: true
415
416   ## A manually managed Persistent Volume and Claim
417   ## Requires persistence.enabled: true
418   ## If defined, PVC must be created manually before volume will be bound
419   # existingClaim:
420   volumeReclaimPolicy: Retain
421
422   ## database data Persistent Volume Storage Class
423   ## If defined, storageClassName: <storageClass>
424   ## If set to "-", storageClassName: "", which disables dynamic provisioning
425   ## If undefined (the default) or set to null, no storageClassName spec is
426   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
427   ##   GKE, AWS & OpenStack)
428   accessMode: ReadWriteOnce
429   size: 1Gi
430   mountPath: /dockerdata-nfs
431   mountSubPath: sdnc/mdsal
432   mdsalPath: /opt/opendaylight/current/daexim
433
434 certpersistence:
435   enabled: true
436
437   ## A manually managed Persistent Volume and Claim
438   ## Requires persistence.enabled: true
439   ## If defined, PVC must be created manually before volume will be bound
440   # existingClaim:
441
442   volumeReclaimPolicy: Retain
443   accessMode: ReadWriteOnce
444   size: 50Mi
445   mountPath: /dockerdata-nfs
446   mountSubPath: sdnc/certs
447   certPath: /opt/app/osaaf
448   ##storageClass: "manual"
449
450 ingress:
451   enabled: false
452   service:
453     - baseaddr: "sdnc.api"
454       name: "sdnc"
455       port: 8443
456   config:
457     ssl: "redirect"
458
459 #Resource Limit flavor -By Default using small
460 flavor: small
461 #segregation for different envionment (Small and Large)
462
463 resources:
464   small:
465     limits:
466       cpu: 2
467       memory: 4Gi
468     requests:
469       cpu: 1
470       memory: 2Gi
471   large:
472     limits:
473       cpu: 4
474       memory: 8Gi
475     requests:
476       cpu: 2
477       memory: 4Gi
478   unlimited: {}