1 # Copyright © 2018 Amdocs, Bell Canada
2 # Copyright © 2019 Samsung Electronics
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
18 #################################################################
20 - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
22 externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}'
23 password: '{{ .Values.config.mariadbRootPassword }}'
24 - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
26 externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
27 login: '{{ .Values.config.userName }}'
28 password: '{{ .Values.config.userPassword }}'
31 #################################################################
32 # Global configuration defaults.
33 #################################################################
37 mountPath: /dockerdata-nfs
39 mountPath: /dockerdata-nfs/backup
41 #################################################################
42 # Application configuration defaults.
43 #################################################################
46 image: adfinissygroup/k8s-mariadb-galera-centos:v002
47 pullPolicy: IfNotPresent
49 # application configuration
51 # .mariadbRootPasswordExternalSecret: 'some-external-secret'
52 # mariadbRootPassword: secretpassword
53 # .userCredentialsExternalSecret: 'some-external-secret'
55 # userPassword: my-password
56 # mysqlDatabase: my-database
58 # default number of instances in the StatefulSet
65 # probe configuration parameters
67 initialDelaySeconds: 30
70 # necessary to disable liveness probe when setting breakpoints
71 # in debugger so K8s doesn't restart unresponsive container
75 initialDelaySeconds: 15
79 ## Persist data to a persitent volume
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
87 volumeReclaimPolicy: Retain
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)
97 accessMode: ReadWriteOnce
99 mountPath: /dockerdata-nfs
100 mountSubPath: "mariadb-galera/data"
101 mysqlPath: /var/lib/mysql
103 mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
108 portName: mariadb-galera
111 replicationPort: 4567
112 replicationName: replication
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
126 lower_case_table_names = 1
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:'.
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
156 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
157 nameOverride: mariadb-galera
159 # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
160 #dnsnameOverride: mariadb-galera