Percona Operator For MySQL

Percona XtraDB Cluster (PXC) is a database clustering solution for MySQL. Percona Operator For MySQL allows users to deploy and manage Percona XtraDB Clusters on Kubernetes.

Useful links

Pre-requisites

  • Kubernetes 1.23+
  • Helm v3

Installation

This chart will deploy the Operator Pod for the further Percona XtraDB Cluster creation in Kubernetes.

Installing the Chart

To install the chart with the pxc release name using a dedicated namespace (recommended):

helm repo add percona https://percona.github.io/percona-helm-charts/
helm install my-operator percona/pxc-operator --version 1.13.0 --namespace my-namespace

The chart can be customized using the following configurable parameters:

ParameterDescriptionDefault
imagePXC Operator Container image full pathpercona/percona-xtradb-cluster-operator:1.13.0
imagePullPolicyPXC Operator Container pull policyAlways
containerSecurityContextPXC Operator Container securityContext{}
imagePullSecretsPXC Operator Pod pull secret[]
replicaCountPXC Operator Pod quantity1
tolerationsList of node taints to tolerate[]
resourcesResource requests and limits{}
nodeSelectorLabels for Pod assignment{}
logStructuredForce PXC operator to print JSON-wrapped log messagesfalse
logLevelPXC Operator logging levelINFO
disableTelemetryDisable sending PXC Operator telemetry data to Perconafalse
rbac.createIf false RBAC will not be created. RBAC resources will need to be created manuallytrue
serviceAccount.createIf false the ServiceAccounts will not be created. The ServiceAccounts must be created manuallytrue

Specify parameters using --set key=value[,key=value] argument to helm install

Alternatively a YAML file that specifies the values for the parameters can be provided like this:

helm install pxc-operator -f values.yaml percona/pxc-operator

Deploy the database

To deploy Percona XtraDB Cluster run the following command:

helm install my-db percona/pxc-db

See more about Percona XtraDB Cluster in its chart here or in the Helm chart installation guide.