mariadb

by joaquinito2051

Helm chartv11.4.0App 10.6.11

MariaDB is an open source, community-developed SQL database server that is widely in use around the world due to its enterprise features, flexibility, and collaboration with leading tech firms.

About this chart

MariaDB packaged by Bitnami

MariaDB is an open source, community-developed SQL database server that is widely in use around the world due to its enterprise features, flexibility, and collaboration with leading tech firms.

Overview of MariaDB

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

Introduction

This chart bootstraps a MariaDB replication cluster deployment on a Kubernetes cluster using the Helm package manager.

MariaDB is developed as open source software and as a relational database it provides an SQL interface for accessing data. The latest versions of MariaDB also include GIS and JSON features.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release my-repo/mariadb

The command deploys MariaDB 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

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker Image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal storage class for dynamic provisioning""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override mariadb.fullname""
fullnameOverrideString to fully override mariadb.fullname""
clusterDomainDefault Kubernetes cluster domaincluster.local
commonAnnotationsCommon annotations to add to all MariaDB resources (sub-charts are not considered){}
commonLabelsCommon labels to add to all MariaDB resources (sub-charts are not considered){}
schedulerNameName of the scheduler (other than default) to dispatch pods""
runtimeClassNameName of the Runtime Class for all MariaDB pods""
extraDeployArray of extra objects to deploy with the release (evaluated as a template)[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

MariaDB common parameters

NameDescriptionValue
image.registryMariaDB image registrydocker.io
image.repositoryMariaDB image repositorybitnami/mariadb
image.tagMariaDB image tag (immutable tags are recommended)10.6.11-debian-11-r0
image.digestMariaDB image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyMariaDB image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
architectureMariaDB architecture (standalone or replication)standalone
auth.rootPasswordPassword for the root user. Ignored if existing secret is provided.""
auth.databaseName for a custom database to createmy_database
auth.usernameName for a custom user to create""
auth.passwordPassword for the new user. Ignored if existing secret is provided""
auth.replicationUserMariaDB replication userreplicator
auth.replicationPasswordMariaDB replication user password. Ignored if existing secret is provided""
auth.existingSecretUse existing secret for password details (auth.rootPassword, auth.password, auth.replicationPassword will be ignored and picked up from this secret). The secret has to contain the keys mariadb-root-password, mariadb-replication-password and mariadb-password""
auth.forcePasswordForce users to specify required passwordsfalse
auth.usePasswordFilesMount credentials as files instead of using environment variablesfalse
auth.customPasswordFilesUse custom password files when auth.usePasswordFiles is set to true. Define path for keys root and user, also define replicator if architecture is set to replication{}
initdbScriptsDictionary of initdb scripts{}
initdbScriptsConfigMapConfigMap with the initdb scripts (Note: Overrides initdbScripts)""

MariaDB Primary parameters

NameDescriptionValue
primary.nameName of the primary database (eg primary, master, leader, ...)primary
primary.commandOverride default container command on MariaDB Primary container(s) (useful when using custom images)[]
primary.argsOverride default container args on MariaDB Primary container(s) (useful when using custom images)[]
primary.lifecycleHooksfor the MariaDB Primary container(s) to automate configuration before or after startup{}
primary.hostAliasesAdd deployment host aliases[]
primary.configurationMariaDB Primary configuration to be injected as ConfigMap""
primary.existingConfigmapName of existing ConfigMap with MariaDB Primary configuration.""
primary.updateStrategy.typeMariaDB primary statefulset strategy typeRollingUpdate
primary.rollingUpdatePartitionPartition update strategy for Mariadb Primary statefulset

Deploy mariadb with OpenTenant

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