Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / cds / values.yaml
1 # Copyright © 2020 Samsung Electronics
2 # Copyright © 2019 Orange, Bell Canada
3 # Copyright © 2017 Amdocs, Bell Canada
4 # Modification Copyright © 2022-2023 Nordix Foundation
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24   persistence:
25     mountPath: /dockerdata-nfs
26   mariadbGalera: &mariadbGalera
27     # flag to enable the DB creation via mariadb-operator
28     useOperator: true
29     #This flag allows NBI to instantiate its own mariadb-galera cluster
30     #When changing it to "true", also set "globalCluster: false"
31     #as the dependency check will not work otherwise (Chart.yaml)
32     localCluster: true
33     globalCluster: false
34     service: mariadb-galera
35     internalPort: 3306
36     nameOverride: mariadb-galera
37     # (optional) if localCluster=false and an external secret is used set this variable
38     #userRootSecret: <secretName>
39
40
41 #################################################################
42 # Secrets metaconfig
43 #################################################################
44 secrets:
45   - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret'
46     uid: 'cds-db-secret'
47     type: basicAuth
48     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "cds-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
49     login: '{{ index .Values "mariadb-galera" "db" "user" }}'
50     password: '{{ index .Values "mariadb-galera" "db" "password" }}'
51
52 #################################################################
53 # Application configuration defaults.
54 #################################################################
55 # application images
56 pullPolicy: Always
57
58 subChartsOnly:
59   enabled: true
60
61 # flag to enable debugging - application support required
62 debugEnabled: false
63
64 # default number of instances
65 replicaCount: 1
66
67 nodeSelector: {}
68
69 affinity: {}
70
71 # probe configuration parameters
72 liveness:
73   initialDelaySeconds: 20
74   periodSeconds: 20
75   timeoutSeconds: 20
76   # necessary to disable liveness probe when setting breakpoints
77   # in debugger so K8s doesn't restart unresponsive container
78   enabled: true
79
80 readiness:
81   initialDelaySeconds: 10
82   periodSeconds: 10
83
84 ingress:
85   enabled: false
86
87 mariadb-galera:
88   db:
89     user: sdnctl
90     # password:
91     externalSecret: *dbUserSecretName
92     name: &mysqlDbName sdnctl
93   nameOverride: &dbServer cds-db
94   replicaCount: 1
95   mariadbOperator:
96     galera:
97       enabled: false
98   persistence:
99     enabled: true
100     mountSubPath: cds/data
101   serviceAccount:
102     nameOverride: *dbServer
103
104 cds-blueprints-processor:
105   enabled: true
106   config:
107     cdsDB:
108       dbServer: *dbServer
109       dbPort: 3306
110       dbName: *mysqlDbName
111       dbCredsExternalSecret: *dbUserSecretName
112
113 cds-command-executor:
114   enabled: true
115
116 cds-py-executor:
117   enabled: true
118
119 cds-sdc-listener:
120   enabled: true
121
122 cds-ui:
123   enabled: true
124
125 #Resource Limit flavor -By Default using small
126 flavor: small
127 #segregation for different environment (Small and Large)
128 resources:
129   small:
130     limits:
131       cpu: "2"
132       memory: "4Gi"
133     requests:
134       cpu: "1"
135       memory: "2Gi"
136   large:
137     limits:
138       cpu: "4"
139       memory: "8Gi"
140     requests:
141       cpu: "2"
142       memory: "4Gi"
143   unlimited: {}