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 |
| 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 | ################################################################# |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 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 | - name: &dbRootPasswordSecretName '{{ include "common.release" . }}-cds-db-root-pass' |
| 42 | uid: 'cds-db-root-pass' |
| 43 | type: password |
| 44 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) .) (hasSuffix "cds-db-root-pass" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret"))}}' |
| 45 | password: '{{ index .Values "mariadb-galera" "config" "mariadbRootPassword" }}' |
| 46 | |
| 47 | ################################################################# |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 48 | # Application configuration defaults. |
| 49 | ################################################################# |
| 50 | # application images |
| 51 | repository: nexus3.onap.org:10001 |
| 52 | pullPolicy: Always |
| 53 | |
| 54 | |
| 55 | subChartsOnly: |
| 56 | enabled: true |
| 57 | |
| 58 | # flag to enable debugging - application support required |
| 59 | debugEnabled: false |
| 60 | |
| 61 | # default number of instances |
| 62 | replicaCount: 1 |
| 63 | |
| 64 | nodeSelector: {} |
| 65 | |
| 66 | affinity: {} |
| 67 | |
| 68 | # probe configuration parameters |
| 69 | liveness: |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 70 | initialDelaySeconds: 20 |
| 71 | periodSeconds: 20 |
| 72 | timeoutSeconds: 20 |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 73 | # necessary to disable liveness probe when setting breakpoints |
| 74 | # in debugger so K8s doesn't restart unresponsive container |
| 75 | enabled: true |
| 76 | |
| 77 | readiness: |
| 78 | initialDelaySeconds: 10 |
| 79 | periodSeconds: 10 |
| 80 | |
| 81 | ingress: |
| 82 | enabled: false |
| 83 | |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 84 | mariadb-galera: |
| 85 | config: |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 86 | userName: sdnctl |
| 87 | # userPassword: sdnctl |
| 88 | userCredentialsExternalSecret: *dbUserSecretName |
| 89 | mariadbRootPasswordExternalSecret: *dbRootPasswordSecretName |
| 90 | mysqlDatabase: &mysqlDbName sdnctl |
| 91 | nameOverride: &dbServer cds-db |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 92 | service: |
| 93 | name: cds-db |
| 94 | portName: cds-db |
| 95 | replicaCount: 1 |
| 96 | persistence: |
| 97 | enabled: true |
Abdelmuhaimen Seaudi | f487c95 | 2019-09-03 17:45:29 +0000 | [diff] [blame] | 98 | mountSubPath: cds/data |
| 99 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 100 | cds-blueprints-processor: |
| 101 | config: |
| 102 | cdsDB: |
| 103 | dbServer: *dbServer |
| 104 | dbPort: 3306 |
| 105 | dbName: *mysqlDbName |
| 106 | dbCredsExternalSecret: *dbUserSecretName |
| 107 | dbRootPassExternalSecret: *dbRootPasswordSecretName |
| 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: {} |