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
| Key | Type | Default | Description |
|---|---|---|---|
| backups | list | [] | 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 |
| databases | list | [] | 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 |
| extraManifests | list | [] | Custom raw resources |
| extraTemplates | list | [] | Custom templated resources |
| fullnameOverride | string | "" | |
| grants | list | [] | 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 |
| mariadb | object | {"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.name | string | The chart will generate the Secret name e.g. myrelease-mariadb-cluster-root | The name of the Secret holding root password. |
| maxscale | object | {"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 |
| nameOverride | string | "" | |
| namespaceOverride | string | "" | |
| physicalBackups | list | [] | 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 |
| users | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmariadb-cluster is pinned at v26.10.2 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