mariadb-cluster

by mmontes11

Helm chartv26.10.2App 0.0.0

Create MariaDB cluster managed by mariadb-operator

About this chart

Create MariaDB cluster managed by mariadb-operator

Installing

You can easily deploy the operator to your cluster by installing the mariadb-operator-crds and mariadb-operator Helm charts:

helm repo add mariadb-operator https://mariadb-operator.github.io/mariadb-operator
helm install mariadb-operator-crds mariadb-operator/mariadb-operator-crds
helm install mariadb-operator mariadb-operator/mariadb-operator

Once the operator and CRDs are deployed, you can provision a MariaDB cluster using the mariadb-cluster Helm chart:

helm install mariadb-cluster mariadb-operator/mariadb-cluster

Refer to the helm documentation for further detail.

Values

KeyTypeDefaultDescription
backupslist[]The list of Backup CRs. The .mariaDbRef keys will be ignored. The .name keys are used to generate distinct CR names. The .namespace keys are allowed to override .Release.Namespace. The .waitForIt keys are allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#backupspec
databaseslist[]The list of Database CRs. The .mariaDbRef keys will be ignored. The .name keys are required to generate distinct CR names. The .namespace keys are allowed to override .Release.Namespace. The .waitForIt keys are allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#databasespec
extraManifestslist[]Custom raw resources
extraTemplateslist[]Custom templated resources
fullnameOverridestring""
grantslist[]The list of Grant CRs. The .mariaDbRef keys will be ignored. The .name keys are used to generate distinct CR names. The .namespace keys are allowed to override .Release.Namespace. The .waitForIt keys are allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#grantspec
mariadbobject{"galera":{"enabled":true},"replicas":3,"rootPasswordSecretKeyRef":{"generate":true,"key":"root","name":""},"storage":{"size":"1Gi"}}MariaDB CR https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#mariadbspec
mariadb.rootPasswordSecretKeyRef.namestringThe chart will generate the Secret name e.g. myrelease-mariadb-cluster-rootThe name of the Secret holding root password.
maxscaleobject{"enabled":false}MaxScale CR The .enabled key is required. The .mariaDbRef key will be ignored. The .namespace key is allowed to override .Release.Namespace. The .waitForIt key is allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#maxscalespec
nameOverridestring""
namespaceOverridestring""
physicalBackupslist[]The list of PhysicalBackup CRs. The .mariaDbRef keys will be ignored. The .name keys are used to generate distinct CR names. The .namespace keys are allowed to override .Release.Namespace. The .waitForIt keys are allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#physicalbackup
userslist[]The list of User CRs. The .mariaDbRef keys will be ignored. The .name keys are required to generate distinct CR names. The .namespace keys are allowed to override .Release.Namespace. The .waitForIt keys are allowed to override .mariaDbRef.waitForIt values (true by default). https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/api_reference.md#userspec

Deploy mariadb-cluster with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mariadb-cluster 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmariadb-cluster is pinned at v26.10.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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