blob: 6b1676fba70c08370614856ef1237af09f8edd8d [file] [log] [blame]
vaibhavjayasea9aee02018-08-31 06:22:26 +00001# Copyright © 2018 Amdocs, Bell Canada
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +01002# Copyright © 2019 Samsung Electronics
vaibhavjayasea9aee02018-08-31 06:22:26 +00003#
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
vitalied1e5876c2018-03-29 10:24:27 -050016#################################################################
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010017# Secrets metaconfig
18#################################################################
19secrets:
Krzysztof Opasiaka789c1a2020-01-22 00:06:32 +010020 - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010021 type: password
22 externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}'
23 password: '{{ .Values.config.mariadbRootPassword }}'
Krzysztof Opasiaka789c1a2020-01-22 00:06:32 +010024 - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010025 type: basicAuth
26 externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
27 login: '{{ .Values.config.userName }}'
28 password: '{{ .Values.config.userPassword }}'
29
30
31#################################################################
vitalied1e5876c2018-03-29 10:24:27 -050032# Global configuration defaults.
33#################################################################
34global:
35 nodePortPrefix: 302
Akansha Dua3fb95ef2019-09-04 11:47:43 +000036 persistence:
37 mountPath: /dockerdata-nfs
38 backup:
39 mountPath: /dockerdata-nfs/backup
40
vitalied1e5876c2018-03-29 10:24:27 -050041#################################################################
42# Application configuration defaults.
43#################################################################
44
45#repository: mysql
vitalied1e5876c2018-03-29 10:24:27 -050046image: adfinissygroup/k8s-mariadb-galera-centos:v002
vitalied1e5876c2018-03-29 10:24:27 -050047pullPolicy: IfNotPresent
48
49# application configuration
50config:
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010051 # .mariadbRootPasswordExternalSecret: 'some-external-secret'
Krzysztof Opasiak26285812020-04-01 22:44:44 +020052 # mariadbRootPassword: secretpassword
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010053 # .userCredentialsExternalSecret: 'some-external-secret'
vitalied1e5876c2018-03-29 10:24:27 -050054 userName: my-user
Krzysztof Opasiak3ed9c942020-01-23 01:03:41 +010055 # userPassword: my-password
56 # mysqlDatabase: my-database
vitalied1e5876c2018-03-29 10:24:27 -050057
58# default number of instances in the StatefulSet
59replicaCount: 3
60
61nodeSelector: {}
62
63affinity: {}
64
65# probe configuration parameters
66liveness:
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
74readiness:
75 initialDelaySeconds: 15
76 periodSeconds: 10
yangyane63c9212019-05-22 13:04:15 +080077 timeoutSeconds: 5
vitalied1e5876c2018-03-29 10:24:27 -050078
79## Persist data to a persitent volume
80persistence:
pramod47b1b822018-08-28 15:41:45 +000081 enabled: true
vitalied1e5876c2018-03-29 10:24:27 -050082
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 Desbureaux2285a282019-08-29 16:17:16 +020097 accessMode: ReadWriteOnce
vitalied1e5876c2018-03-29 10:24:27 -050098 size: 2Gi
pramod47b1b822018-08-28 15:41:45 +000099 mountPath: /dockerdata-nfs
100 mountSubPath: "mariadb-galera/data"
101 mysqlPath: /var/lib/mysql
Akansha Dua3fb95ef2019-09-04 11:47:43 +0000102 backup:
Sylvain Desbureaux524c8782019-11-08 17:36:02 +0100103 mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
vitalied1e5876c2018-03-29 10:24:27 -0500104
105service:
106 internalPort: 3306
107 name: mariadb-galera
BorislavG1ffbd992018-04-24 07:56:27 +0000108 portName: mariadb-galera
vitalied1e5876c2018-03-29 10:24:27 -0500109 sstPort: 4444
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400110 sstPortName: sst
vitalied1e5876c2018-03-29 10:24:27 -0500111 replicationPort: 4567
112 replicationName: replication
113 istPort: 4568
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400114 istPortName: ist
vitalied1e5876c2018-03-29 10:24:27 -0500115
116ingress:
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##
RPMishrae4ee7f12020-10-07 12:09:01 +0530123#externalConfig: ""
124externalConfig: |-
125 [mysqld]
126 lower_case_table_names = 1
vitalied1e5876c2018-03-29 10:24:27 -0500127
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
139resources:
Sylvain Desbureauxff702c72018-11-23 14:25:57 +0100140 small:
141 limits:
Sylvain Desbureaux65b0e882020-09-23 10:43:30 +0200142 cpu: 500m
143 memory: 1.5Gi
Sylvain Desbureauxff702c72018-11-23 14:25:57 +0100144 requests:
Sylvain Desbureaux65b0e882020-09-23 10:43:30 +0200145 cpu: 100m
146 memory: 750Mi
Sylvain Desbureauxff702c72018-11-23 14:25:57 +0100147 large:
148 limits:
149 cpu: 2
150 memory: 4Gi
151 requests:
152 cpu: 1
153 memory: 2Gi
154 unlimited: {}
vitalied1e5876c2018-03-29 10:24:27 -0500155
156# Name for mariadb-galera cluster - should be unique accross all projects or other clusters
157nameOverride: mariadb-galera
158
159# DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
BorislavG1ffbd992018-04-24 07:56:27 +0000160#dnsnameOverride: mariadb-galera
Akansha Dua3fb95ef2019-09-04 11:47:43 +0000161
162backup:
163 enabled: false
164 cron: "00 00 * * *"
165 retentionPeriod: 3