vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 2 | # Copyright © 2019 Samsung Electronics |
vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 16 | ################################################################# |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 17 | # Secrets metaconfig |
| 18 | ################################################################# |
| 19 | secrets: |
Krzysztof Opasiak | a789c1a | 2020-01-22 00:06:32 +0100 | [diff] [blame] | 20 | - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}' |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 21 | type: password |
| 22 | externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}' |
| 23 | password: '{{ .Values.config.mariadbRootPassword }}' |
Krzysztof Opasiak | a789c1a | 2020-01-22 00:06:32 +0100 | [diff] [blame] | 24 | - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}' |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 25 | type: basicAuth |
| 26 | externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}' |
| 27 | login: '{{ .Values.config.userName }}' |
| 28 | password: '{{ .Values.config.userPassword }}' |
| 29 | |
| 30 | |
| 31 | ################################################################# |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 32 | # Global configuration defaults. |
| 33 | ################################################################# |
| 34 | global: |
| 35 | nodePortPrefix: 302 |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 36 | persistence: |
| 37 | mountPath: /dockerdata-nfs |
| 38 | backup: |
| 39 | mountPath: /dockerdata-nfs/backup |
| 40 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 41 | ################################################################# |
| 42 | # Application configuration defaults. |
| 43 | ################################################################# |
| 44 | |
| 45 | #repository: mysql |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 46 | image: adfinissygroup/k8s-mariadb-galera-centos:v002 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 47 | pullPolicy: IfNotPresent |
| 48 | |
| 49 | # application configuration |
| 50 | config: |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 51 | # .mariadbRootPasswordExternalSecret: 'some-external-secret' |
Krzysztof Opasiak | 2628581 | 2020-04-01 22:44:44 +0200 | [diff] [blame] | 52 | # mariadbRootPassword: secretpassword |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 53 | # .userCredentialsExternalSecret: 'some-external-secret' |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 54 | userName: my-user |
Krzysztof Opasiak | 3ed9c94 | 2020-01-23 01:03:41 +0100 | [diff] [blame] | 55 | # userPassword: my-password |
| 56 | # mysqlDatabase: my-database |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 57 | |
| 58 | # default number of instances in the StatefulSet |
| 59 | replicaCount: 3 |
| 60 | |
| 61 | nodeSelector: {} |
| 62 | |
| 63 | affinity: {} |
| 64 | |
| 65 | # probe configuration parameters |
| 66 | liveness: |
| 67 | initialDelaySeconds: 30 |
| 68 | periodSeconds: 10 |
| 69 | timeoutSeconds: 5 |
| 70 | # necessary to disable liveness probe when setting breakpoints |
| 71 | # in debugger so K8s doesn't restart unresponsive container |
| 72 | enabled: true |
| 73 | |
| 74 | readiness: |
| 75 | initialDelaySeconds: 15 |
| 76 | periodSeconds: 10 |
yangyan | e63c921 | 2019-05-22 13:04:15 +0800 | [diff] [blame] | 77 | timeoutSeconds: 5 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 78 | |
| 79 | ## Persist data to a persitent volume |
| 80 | persistence: |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 81 | enabled: true |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 82 | |
| 83 | ## A manually managed Persistent Volume and Claim |
| 84 | ## Requires persistence.enabled: true |
| 85 | ## If defined, PVC must be created manually before volume will be bound |
| 86 | # existingClaim: |
| 87 | volumeReclaimPolicy: Retain |
| 88 | |
| 89 | ## database data Persistent Volume Storage Class |
| 90 | ## If defined, storageClassName: <storageClass> |
| 91 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 92 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 93 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 94 | ## GKE, AWS & OpenStack) |
| 95 | ## |
| 96 | # storageClass: "-" |
Sylvain Desbureaux | 2285a28 | 2019-08-29 16:17:16 +0200 | [diff] [blame] | 97 | accessMode: ReadWriteOnce |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 98 | size: 2Gi |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 99 | mountPath: /dockerdata-nfs |
| 100 | mountSubPath: "mariadb-galera/data" |
| 101 | mysqlPath: /var/lib/mysql |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 102 | backup: |
Sylvain Desbureaux | 524c878 | 2019-11-08 17:36:02 +0100 | [diff] [blame] | 103 | mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}} |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 104 | |
| 105 | service: |
| 106 | internalPort: 3306 |
| 107 | name: mariadb-galera |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 108 | portName: mariadb-galera |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 109 | sstPort: 4444 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 110 | sstPortName: sst |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 111 | replicationPort: 4567 |
| 112 | replicationName: replication |
| 113 | istPort: 4568 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 114 | istPortName: ist |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 115 | |
| 116 | ingress: |
| 117 | enabled: false |
| 118 | |
| 119 | |
| 120 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 121 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 122 | ## |
RPMishra | e4ee7f1 | 2020-10-07 12:09:01 +0530 | [diff] [blame] | 123 | #externalConfig: "" |
| 124 | externalConfig: |- |
| 125 | [mysqld] |
| 126 | lower_case_table_names = 1 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 127 | |
| 128 | #resources: {} |
| 129 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 130 | # choice for the user. This also increases chances charts run on environments with little |
| 131 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 132 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 133 | # |
| 134 | # Example: |
| 135 | # Configure resource requests and limits |
| 136 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 137 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 138 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 139 | resources: |
Sylvain Desbureaux | ff702c7 | 2018-11-23 14:25:57 +0100 | [diff] [blame] | 140 | small: |
| 141 | limits: |
Sylvain Desbureaux | 65b0e88 | 2020-09-23 10:43:30 +0200 | [diff] [blame] | 142 | cpu: 500m |
| 143 | memory: 1.5Gi |
Sylvain Desbureaux | ff702c7 | 2018-11-23 14:25:57 +0100 | [diff] [blame] | 144 | requests: |
Sylvain Desbureaux | 65b0e88 | 2020-09-23 10:43:30 +0200 | [diff] [blame] | 145 | cpu: 100m |
| 146 | memory: 750Mi |
Sylvain Desbureaux | ff702c7 | 2018-11-23 14:25:57 +0100 | [diff] [blame] | 147 | large: |
| 148 | limits: |
| 149 | cpu: 2 |
| 150 | memory: 4Gi |
| 151 | requests: |
| 152 | cpu: 1 |
| 153 | memory: 2Gi |
| 154 | unlimited: {} |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 155 | |
| 156 | # Name for mariadb-galera cluster - should be unique accross all projects or other clusters |
| 157 | nameOverride: mariadb-galera |
| 158 | |
| 159 | # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 160 | #dnsnameOverride: mariadb-galera |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 161 | |
| 162 | backup: |
| 163 | enabled: false |
| 164 | cron: "00 00 * * *" |
| 165 | retentionPeriod: 3 |