Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 1 | # Copyright © 2020 Samsung Electronics |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 2 | # Copyright © 2019 Orange, Bell Canada |
| 3 | # Copyright © 2017 Amdocs, Bell Canada |
efiacor | 7d3b014 | 2023-02-28 11:28:52 +0000 | [diff] [blame] | 4 | # Modification Copyright © 2022-2023 Nordix Foundation |
Sylvain Desbureaux | 7acab56 | 2019-03-01 09:26:13 +0100 | [diff] [blame] | 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 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 18 | ################################################################# |
| 19 | # Global configuration defaults. |
| 20 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefix: 302 |
| 23 | nodePortPrefixExt: 304 |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 24 | persistence: |
| 25 | mountPath: /dockerdata-nfs |
Andreas Geissler | bf4b2e5 | 2024-01-22 16:21:27 +0100 | [diff] [blame] | 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 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 40 | |
| 41 | ################################################################# |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 42 | # Secrets metaconfig |
| 43 | ################################################################# |
| 44 | secrets: |
| 45 | - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret' |
| 46 | uid: 'cds-db-secret' |
| 47 | type: basicAuth |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 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" }}' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 51 | |
| 52 | ################################################################# |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 53 | # Application configuration defaults. |
| 54 | ################################################################# |
| 55 | # application images |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 56 | pullPolicy: Always |
| 57 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 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: |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 73 | initialDelaySeconds: 20 |
| 74 | periodSeconds: 20 |
| 75 | timeoutSeconds: 20 |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 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 | |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 87 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 88 | db: |
| 89 | user: sdnctl |
| 90 | # password: |
| 91 | externalSecret: *dbUserSecretName |
| 92 | name: &mysqlDbName sdnctl |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 93 | nameOverride: &dbServer cds-db |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 94 | replicaCount: 1 |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 95 | mariadbOperator: |
| 96 | galera: |
| 97 | enabled: false |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 98 | persistence: |
| 99 | enabled: true |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 100 | mountSubPath: cds/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 101 | serviceAccount: |
| 102 | nameOverride: *dbServer |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 103 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 104 | cds-blueprints-processor: |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 105 | enabled: true |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 106 | config: |
| 107 | cdsDB: |
| 108 | dbServer: *dbServer |
| 109 | dbPort: 3306 |
| 110 | dbName: *mysqlDbName |
| 111 | dbCredsExternalSecret: *dbUserSecretName |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 112 | |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 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 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 125 | #Resource Limit flavor -By Default using small |
| 126 | flavor: small |
efiacor | 7d3b014 | 2023-02-28 11:28:52 +0000 | [diff] [blame] | 127 | #segregation for different environment (Small and Large) |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 128 | resources: |
| 129 | small: |
| 130 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 131 | cpu: "2" |
| 132 | memory: "4Gi" |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 133 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 134 | cpu: "1" |
| 135 | memory: "2Gi" |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 136 | large: |
| 137 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 138 | cpu: "4" |
| 139 | memory: "8Gi" |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 140 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 141 | cpu: "2" |
| 142 | memory: "4Gi" |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 143 | unlimited: {} |