mariadb-galera
MariaDB Galera is a multi-primary database cluster solution for synchronous replication and high availability.
About this chart
MariaDB Galera packaged by Bitnami
MariaDB Galera is a multi-primary database cluster solution for synchronous replication and high availability.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/mariadb-galera
Introduction
This chart bootstraps a MariaDB Galera cluster on Kubernetes using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.10+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
Add the bitnami charts repo to Helm:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
To install the chart with the release name my-release:
$ helm install my-release my-repo/mariadb-galera
The command deploys MariaDB Galera on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
For a graceful termination, set the replica count of the Pods in the mariadb-galera StatefulSet to 0:
$ kubectl scale sts my-release-mariadb-galera --replicas=0
To uninstall/delete the my-release release:
$ helm delete --purge my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template with a string | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
schedulerName | Name of the Kubernetes scheduler (other than default) | "" |
clusterDomain | Kubernetes DNS Domain name to use | cluster.local |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template) | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | [] |
diagnosticMode.args | Args to override all containers in the deployment | [] |
MariaDB Galera parameters
| Name | Description | Value |
|---|---|---|
image.registry | MariaDB Galera image registry | docker.io |
image.repository | MariaDB Galera image repository | bitnami/mariadb-galera |
image.tag | MariaDB Galera image tag (immutable tags are recommended) | 10.6.10-debian-11-r11 |
image.digest | MariaDB Galera image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | MariaDB Galera image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
podManagementPolicy | StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel | OrderedReady |
hostAliases | Add deployment host aliases | [] |
service.type | Kubernetes service type | ClusterIP |
service.clusterIP | Specific cluster IP when service type is cluster IP. Use None for headless service | "" |
service.ports.mysql | MariaDB service port | 3306 |
service.nodePorts.mysql | Specify the nodePort value for the LoadBalancer and NodePort service types. | "" |
service.extraPorts | Extra ports to expose (normally used with the sidecar value) | [] |
service.externalIPs | External IP list to use with ClusterIP service type | [] |
service.loadBalancerIP | loadBalancerIP if service type is LoadBalancer | "" |
service.loadBalancerSourceRanges | Addresses that are allowed when svc is LoadBalancer | [] |
service.externalTrafficPolicy | %%MAIN_CONTAINER_NAME%% service external traffic policy | Cluster |
service.annotations | Additional annotations for MariaDB Galera service | {} |
service.sessionAffinity | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
service.headless.annotations | Annotations for the headless service. | {} |
service.headless.publishNotReadyAddresses | Publish not Ready MariaDB Galera pods' IPs in the headless service. | true |
serviceAccount.create | Specify whether a ServiceAccount should be created | false |
serviceAccount.name | Name of the service account to use. If not set and create is true, a name is generated using the fullname template. | "" |
serviceAccount.automountServiceAccountToken | Automount service account token for the server service account | false |
serviceAccount.annotations | Annotations for service account. Evaluated as a template. Only used if create is true. | {} |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Array containing extra env vars to configure MariaDB Galera replicas | [] |
extraEnvVarsCM | ConfigMap containing extra env vars to configure MariaDB Galera replicas | "" |
extraEnvVarsSecret |
Deploy mariadb-galera with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mariadb-galera on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmariadb-galera is pinned at v7.4.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply