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 |
Sylvain Desbureaux | 7acab56 | 2019-03-01 09:26:13 +0100 | [diff] [blame] | 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 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 17 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: |
| 21 | nodePortPrefix: 302 |
| 22 | nodePortPrefixExt: 304 |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 23 | persistence: |
| 24 | mountPath: /dockerdata-nfs |
| 25 | |
| 26 | ################################################################# |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 27 | # Secrets metaconfig |
| 28 | ################################################################# |
| 29 | secrets: |
| 30 | - name: &dbUserSecretName '{{ include "common.release" . }}-cds-db-secret' |
| 31 | uid: 'cds-db-secret' |
| 32 | type: basicAuth |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 33 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "cds-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}' |
| 34 | login: '{{ index .Values "mariadb-galera" "db" "user" }}' |
| 35 | password: '{{ index .Values "mariadb-galera" "db" "password" }}' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 36 | |
| 37 | ################################################################# |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 38 | # Application configuration defaults. |
| 39 | ################################################################# |
| 40 | # application images |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 41 | pullPolicy: Always |
| 42 | |
| 43 | |
| 44 | subChartsOnly: |
| 45 | enabled: true |
| 46 | |
| 47 | # flag to enable debugging - application support required |
| 48 | debugEnabled: false |
| 49 | |
| 50 | # default number of instances |
| 51 | replicaCount: 1 |
| 52 | |
| 53 | nodeSelector: {} |
| 54 | |
| 55 | affinity: {} |
| 56 | |
| 57 | # probe configuration parameters |
| 58 | liveness: |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 59 | initialDelaySeconds: 20 |
| 60 | periodSeconds: 20 |
| 61 | timeoutSeconds: 20 |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 62 | # necessary to disable liveness probe when setting breakpoints |
| 63 | # in debugger so K8s doesn't restart unresponsive container |
| 64 | enabled: true |
| 65 | |
| 66 | readiness: |
| 67 | initialDelaySeconds: 10 |
| 68 | periodSeconds: 10 |
| 69 | |
| 70 | ingress: |
| 71 | enabled: false |
| 72 | |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 73 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 74 | db: |
| 75 | user: sdnctl |
| 76 | # password: |
| 77 | externalSecret: *dbUserSecretName |
| 78 | name: &mysqlDbName sdnctl |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 79 | nameOverride: &dbServer cds-db |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 80 | replicaCount: 1 |
| 81 | persistence: |
| 82 | enabled: true |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 83 | mountSubPath: cds/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 84 | serviceAccount: |
| 85 | nameOverride: *dbServer |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 86 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 87 | cds-blueprints-processor: |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 88 | enabled: true |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 89 | config: |
| 90 | cdsDB: |
| 91 | dbServer: *dbServer |
| 92 | dbPort: 3306 |
| 93 | dbName: *mysqlDbName |
| 94 | dbCredsExternalSecret: *dbUserSecretName |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 95 | |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 96 | cds-command-executor: |
| 97 | enabled: true |
| 98 | |
| 99 | cds-py-executor: |
| 100 | enabled: true |
| 101 | |
| 102 | cds-sdc-listener: |
| 103 | enabled: true |
| 104 | |
| 105 | cds-ui: |
| 106 | enabled: true |
| 107 | |
| 108 | |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 109 | #Resource Limit flavor -By Default using small |
| 110 | flavor: small |
| 111 | #segregation for different envionment (Small and Large) |
| 112 | |
| 113 | resources: |
| 114 | small: |
| 115 | limits: |
| 116 | cpu: 2 |
| 117 | memory: 4Gi |
| 118 | requests: |
| 119 | cpu: 1 |
| 120 | memory: 2Gi |
| 121 | large: |
| 122 | limits: |
| 123 | cpu: 4 |
| 124 | memory: 8Gi |
| 125 | requests: |
| 126 | cpu: 2 |
| 127 | memory: 4Gi |
| 128 | unlimited: {} |