Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 19 | mariadbGalera: |
| 20 | nameOverride: mariadb-galera |
| 21 | servicePort: 3306 |
| 22 | # set these two values if you want to access an 'out of ONAP' mariadb |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 23 | # userRootPassword: some-password |
| 24 | # userRootSecret: some-secret-name |
| 25 | # userRootSecretKey: password |
| 26 | |
| 27 | ################################################################# |
| 28 | # Secrets metaconfig |
| 29 | ################################################################# |
| 30 | secrets: |
| 31 | - uid: root-password |
| 32 | type: password |
Krzysztof Opasiak | 80e39d4 | 2020-08-31 22:25:52 +0200 | [diff] [blame] | 33 | externalSecret: '{{ tpl (ternary (default "" .Values.mariadbGalera.userRootSecret) (default (include "mariadbInit.mariadbClusterSecret" .) .Values.global.mariadbGalera.userRootSecret) (not (empty (default "" .Values.mariadbGalera.serviceName)))) . }}' |
| 34 | password: '{{ tpl (ternary (default "" .Values.mariadbGalera.userRootPassword) (default "" .Values.global.mariadbGalera.userRootPassword) (not (empty (default "" .Values.mariadbGalera.serviceName)))) . }}' |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 35 | - uid: '{{ .Values.config.mysqlDatabase }}' |
| 36 | type: basicAuth |
Krzysztof Opasiak | 8cf46b4 | 2020-02-08 01:07:21 +0100 | [diff] [blame] | 37 | externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}' |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 38 | login: '{{ .Values.config.userName }}' |
| 39 | password: '{{ .Values.config.userPassword }}' |
| 40 | passwordPolicy: required |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 41 | |
| 42 | ################################################################# |
| 43 | # Application configuration defaults. |
| 44 | ################################################################# |
| 45 | |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 46 | pullPolicy: IfNotPresent |
| 47 | |
RPMishra | e4ee7f1 | 2020-10-07 12:09:01 +0530 | [diff] [blame] | 48 | # These two values are used to supply commands that are run after the DB is created. |
| 49 | # Components using the shared DB can either pass a string which has a set of commands |
| 50 | # or a config map that contains a shell script. If both are specified only the config |
| 51 | # map will be executed. For reference, please see the VID components for config map |
| 52 | dbScript: "" |
| 53 | dbScriptConfigMap: "" |
| 54 | |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 55 | # Set it if you want to change the name of the different components |
| 56 | # nameOverride: |
| 57 | |
Krzysztof Opasiak | 80e39d4 | 2020-08-31 22:25:52 +0200 | [diff] [blame] | 58 | mariadbGalera: {} |
| 59 | # serviceName: some-name |
| 60 | # containerName: some-name |
| 61 | # servicePort: 3306 |
| 62 | # userRootPassword: some-password |
| 63 | # userRootSecret: some-secret-name |
| 64 | # userRootSecretKey: password |
| 65 | |
Andreas Geissler | 1ffb651 | 2022-12-12 15:03:24 +0100 | [diff] [blame] | 66 | # These are default settings, required for a chart compilation with "local" cluster |
| 67 | # setting. These values need to be overwritten in the component's values.yaml, e.g. |
| 68 | # global: |
| 69 | # mariadbGalera: &mariadbGalera |
| 70 | # #This flag allows SO to instantiate its own mariadb-galera cluster |
| 71 | # localCluster: true |
| 72 | # service: nbi-galera |
| 73 | # internalPort: 3306 |
| 74 | # nameOverride: nbi-galera |
| 75 | # mariadb-init: |
| 76 | # mariadb-galera: |
| 77 | # nameOverride: nbi-galera |
| 78 | # service: |
| 79 | # internalPort: 3306 |
| 80 | mariadb-galera: |
| 81 | service: |
| 82 | internalPort: 3306 |
| 83 | nameOverride: mariadb-galera |
Andreas Geissler | 829f11c | 2024-01-12 12:19:03 +0100 | [diff] [blame] | 84 | mariadbOperator: |
| 85 | galera: |
| 86 | enabled: false |
Krzysztof Opasiak | 80e39d4 | 2020-08-31 22:25:52 +0200 | [diff] [blame] | 87 | |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 88 | config: |
| 89 | userPassword: Ci@shsOd3pky1Vji |
| 90 | userName: u5WZ1GMSIS1wHZF |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 91 | # set this value if you would like to use external secret instead of providing a password |
Krzysztof Opasiak | 8cf46b4 | 2020-02-08 01:07:21 +0100 | [diff] [blame] | 92 | # userCredentialsExternalsecret: some-secret-name |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 93 | mysqlDatabase: ynsaUCru6mUNwGal |
| 94 | mysqlAdditionalDatabases: {} |
| 95 | # add addtional dabases |
| 96 | # this is an dict |
| 97 | # Example: |
| 98 | # mysqlAdditionalDatabases: |
| 99 | # dbOne: |
| 100 | # user: one |
| 101 | # password: pwd1 |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 102 | # externalSecret: some-secret-name |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 103 | # dbTwo: |
| 104 | # user: two |
| 105 | # password: pwd2 |
Krzysztof Opasiak | d732244 | 2020-01-30 12:10:40 +0100 | [diff] [blame] | 106 | # externalSecret: some-secret-name |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 107 | config_map: default |
| 108 | |
| 109 | nodeSelector: {} |
| 110 | |
| 111 | affinity: {} |
| 112 | |
| 113 | #resources: {} |
| 114 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 115 | # choice for the user. This also increases chances charts run on environments with little |
| 116 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 117 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 118 | # |
| 119 | # Example: |
| 120 | # Configure resource requests and limits |
| 121 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 122 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 123 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 124 | flavor: small |
| 125 | resources: |
| 126 | small: |
| 127 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 128 | cpu: "100m" |
| 129 | memory: "0.5Gi" |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 130 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 131 | cpu: "10m" |
| 132 | memory: "0.01Gi" |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 133 | large: |
| 134 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 135 | cpu: "200m" |
| 136 | memory: "0.5Gi" |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 137 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 138 | cpu: "20m" |
| 139 | memory: "0.02Gi" |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 140 | unlimited: {} |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 141 | |
vladimir turok | d804418 | 2023-07-27 16:28:36 +0200 | [diff] [blame] | 142 | #Pods Service Account |
| 143 | serviceAccount: |
| 144 | nameOverride: mariadb-init |
| 145 | roles: |
| 146 | - read |
| 147 | |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 148 | wait_for_job_container: |
| 149 | containers: |
| 150 | - '{{ include "common.name" . }}' |