[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / cds / values.yaml
1 # Copyright © 2020 Samsung Electronics
2 # Copyright © 2019 Orange, Bell Canada
3 # Copyright © 2017 Amdocs, Bell Canada
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   nodePortPrefix: 302
22   nodePortPrefixExt: 304
23   repository: nexus3.onap.org:10001
24   readinessImage: onap/oom/readiness:3.0.1
25   loggingRepository: docker.elastic.co
26   loggingImage: beats/filebeat:5.5.0
27   persistence:
28     mountPath: /dockerdata-nfs
29
30 #################################################################
31 # Secrets metaconfig
32 #################################################################
33 secrets:
34   - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret'
35     uid: 'cds-db-secret'
36     type: basicAuth
37     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "cds-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
38     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
39     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
40
41 #################################################################
42 # Application configuration defaults.
43 #################################################################
44 # application images
45 repository: nexus3.onap.org:10001
46 pullPolicy: Always
47
48
49 subChartsOnly:
50   enabled: true
51
52 # flag to enable debugging - application support required
53 debugEnabled: false
54
55 # default number of instances
56 replicaCount: 1
57
58 nodeSelector: {}
59
60 affinity: {}
61
62 # probe configuration parameters
63 liveness:
64   initialDelaySeconds: 20
65   periodSeconds: 20
66   timeoutSeconds: 20
67   # necessary to disable liveness probe when setting breakpoints
68   # in debugger so K8s doesn't restart unresponsive container
69   enabled: true
70
71 readiness:
72   initialDelaySeconds: 10
73   periodSeconds: 10
74
75 ingress:
76   enabled: false
77
78 mariadb-galera:
79   config:
80     userName: sdnctl
81     # userPassword: sdnctl
82     userCredentialsExternalSecret: *dbUserSecretName
83     mysqlDatabase: &mysqlDbName sdnctl
84   nameOverride: &dbServer cds-db
85   service:
86     name: cds-db
87     portName: cds-db
88   replicaCount: 1
89   persistence:
90     enabled: true
91     mountSubPath: cds/data
92
93 cds-blueprints-processor:
94   config:
95     cdsDB:
96       dbServer: *dbServer
97       dbPort: 3306
98       dbName: *mysqlDbName
99       dbCredsExternalSecret: *dbUserSecretName
100
101 #Resource Limit flavor -By Default using small
102 flavor: small
103 #segregation for different envionment (Small and Large)
104
105 resources:
106   small:
107     limits:
108       cpu: 2
109       memory: 4Gi
110     requests:
111       cpu: 1
112       memory: 2Gi
113   large:
114     limits:
115       cpu: 4
116       memory: 8Gi
117     requests:
118       cpu: 2
119       memory: 4Gi
120   unlimited: {}