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