blob: ced4f1d9300978866693373bf8cff9610e62c90b [file] [log] [blame]
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +01001# Copyright © 2020 Samsung Electronics
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +00002# Copyright © 2019 Orange, Bell Canada
3# Copyright © 2017 Amdocs, Bell Canada
efiacor7d3b0142023-02-28 11:28:52 +00004# Modification Copyright © 2022-2023 Nordix Foundation
Sylvain Desbureaux7acab562019-03-01 09:26:13 +01005#
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
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000018#################################################################
19# Global configuration defaults.
20#################################################################
21global:
22 nodePortPrefix: 302
23 nodePortPrefixExt: 304
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000024 persistence:
25 mountPath: /dockerdata-nfs
Andreas Geisslerbf4b2e52024-01-22 16:21:27 +010026 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
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000040
41#################################################################
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +010042# Secrets metaconfig
43#################################################################
44secrets:
45 - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret'
46 uid: 'cds-db-secret'
47 type: basicAuth
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010048 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" }}'
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +010051
52#################################################################
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000053# Application configuration defaults.
54#################################################################
55# application images
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000056pullPolicy: Always
57
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000058subChartsOnly:
59 enabled: true
60
61# flag to enable debugging - application support required
62debugEnabled: false
63
64# default number of instances
65replicaCount: 1
66
67nodeSelector: {}
68
69affinity: {}
70
71# probe configuration parameters
72liveness:
Oleg Mitsura3a621182019-10-09 12:40:11 -040073 initialDelaySeconds: 20
74 periodSeconds: 20
75 timeoutSeconds: 20
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +000076 # necessary to disable liveness probe when setting breakpoints
77 # in debugger so K8s doesn't restart unresponsive container
78 enabled: true
79
80readiness:
81 initialDelaySeconds: 10
82 periodSeconds: 10
83
84ingress:
85 enabled: false
86
Alexis de Talhouët63df1632019-03-20 08:17:58 -040087mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010088 db:
89 user: sdnctl
90 # password:
91 externalSecret: *dbUserSecretName
92 name: &mysqlDbName sdnctl
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +010093 nameOverride: &dbServer cds-db
Alexis de Talhouët63df1632019-03-20 08:17:58 -040094 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020095 mariadbOperator:
96 galera:
97 enabled: false
Alexis de Talhouët63df1632019-03-20 08:17:58 -040098 persistence:
99 enabled: true
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000100 mountSubPath: cds/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100101 serviceAccount:
102 nameOverride: *dbServer
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000103
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +0100104cds-blueprints-processor:
Sylvain Desbureaux503b2292020-11-21 22:29:17 +0100105 enabled: true
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +0100106 config:
107 cdsDB:
108 dbServer: *dbServer
109 dbPort: 3306
110 dbName: *mysqlDbName
111 dbCredsExternalSecret: *dbUserSecretName
Krzysztof Opasiak32f9aaa2020-02-06 23:05:15 +0100112
Sylvain Desbureaux503b2292020-11-21 22:29:17 +0100113cds-command-executor:
114 enabled: true
115
116cds-py-executor:
117 enabled: true
118
119cds-sdc-listener:
120 enabled: true
121
122cds-ui:
123 enabled: true
124
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000125#Resource Limit flavor -By Default using small
126flavor: small
efiacor7d3b0142023-02-28 11:28:52 +0000127#segregation for different environment (Small and Large)
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000128resources:
129 small:
130 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100131 cpu: "2"
132 memory: "4Gi"
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000133 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100134 cpu: "1"
135 memory: "2Gi"
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000136 large:
137 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100138 cpu: "4"
139 memory: "8Gi"
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000140 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100141 cpu: "2"
142 memory: "4Gi"
Abdelmuhaimen Seaudif487c952019-09-03 17:45:29 +0000143 unlimited: {}