Quickstart
This guide aims to provide a quick way to get started with the MariaDB Enterprise Operator for Kubernetes. It will walk you through the process of deploying a MariaDB Enterprise Cluster and MaxScale via the MariaDB
and MaxScale
CRs (Custom Resources) respectively.
Before you begin, ensure you meet the following prerequisites:
Configure your customer access for docker.mariadb.com
The first step will be configuring a Secret
with the credentials used by the MariaDB
CR:
Next, we will deploy a MariaDB Enterprise Cluster (Galera) using the following CR:
Let's break it down:
rootPasswordSecretKeyRef
: A reference to aSecret
containing the root password.imagePullSecrets
: The name of theSecret
containing the customer credentials to pull the MariaDB Enterprise Server image.maxScaleRef
: The name of theMaxScale
CR that we will be creating right after.username
,passwordSecretKeyRef
anddatabase
: The initial user and database to create.storage
: The size of the volume that will back the data directory.replicas
: The number of MariaDB Enterprise Server instances to deploy.galera
: Configuration for the Galera clustering.
After applying the CR, we can observe the MariaDB Pods
being created:
Now, let's deploy a MaxScale
CR:
Again, let's break it down:
imagePullSecrets
: The name of theSecret
containing the customer credentials to pull the MaxScale image.mariaDbRef
: A reference to theMariaDB
CR that we want to connect to.replicas
: The number of MaxScale instances to deploy.
After applying the CR, we can observe the MaxScale Pods
being created, and that both the MariaDB
and MaxScale
CRs will become ready eventually:
To conclude, let's connect to the MariaDB Enterprise Cluster through MaxScale using the initial user and database we initially defined in the MariaDB
CR:
You have successfully deployed a MariaDB Enterprise Cluster with MaxScale in Kubernetes using the MariaDB Enterprise Operator!
Refer to the documentation, the API referenceand the examples catalog for further detail.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?