Update processor-db config with correct configuration
[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   readinessRepository: oomk8s
25   readinessImage: readiness-check:2.0.2
26   loggingRepository: docker.elastic.co
27   loggingImage: beats/filebeat:5.5.0
28   persistence:
29     mountPath: /dockerdata-nfs
30
31 #################################################################
32 # Secrets metaconfig
33 #################################################################
34 secrets:
35   - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret'
36     uid: 'cds-db-secret'
37     type: basicAuth
38     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "cds-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
39     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
40     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
41
42 #################################################################
43 # Application configuration defaults.
44 #################################################################
45 # application images
46 repository: nexus3.onap.org:10001
47 pullPolicy: Always
48
49
50 subChartsOnly:
51   enabled: true
52
53 # flag to enable debugging - application support required
54 debugEnabled: false
55
56 # default number of instances
57 replicaCount: 1
58
59 nodeSelector: {}
60
61 affinity: {}
62
63 # probe configuration parameters
64 liveness:
65   initialDelaySeconds: 20
66   periodSeconds: 20
67   timeoutSeconds: 20
68   # necessary to disable liveness probe when setting breakpoints
69   # in debugger so K8s doesn't restart unresponsive container
70   enabled: true
71
72 readiness:
73   initialDelaySeconds: 10
74   periodSeconds: 10
75
76 ingress:
77   enabled: false
78
79 mariadb-galera:
80   config:
81     userName: sdnctl
82     # userPassword: sdnctl
83     userCredentialsExternalSecret: *dbUserSecretName
84     mysqlDatabase: &mysqlDbName sdnctl
85   nameOverride: &dbServer cds-db
86   service:
87     name: cds-db
88     portName: cds-db
89   replicaCount: 1
90   persistence:
91     enabled: true
92     mountSubPath: cds/data
93
94 cds-blueprints-processor:
95   config:
96     cdsDB:
97       dbServer: *dbServer
98       dbPort: 3306
99       dbName: *mysqlDbName
100       dbCredsExternalSecret: *dbUserSecretName
101
102 #Resource Limit flavor -By Default using small
103 flavor: small
104 #segregation for different envionment (Small and Large)
105
106 resources:
107   small:
108     limits:
109       cpu: 2
110       memory: 4Gi
111     requests:
112       cpu: 1
113       memory: 2Gi
114   large:
115     limits:
116       cpu: 4
117       memory: 8Gi
118     requests:
119       cpu: 2
120       memory: 4Gi
121   unlimited: {}