ps-operator

by Percona

Helm chartv1.3.0App 1.3.0

A Helm chart for Deploying the Percona Operator for MySQL (based on Percona Server for MySQL)

About this chart

Percona Operator for Percona Server

Percona Operator for PS allows users to deploy and manage Percona Server Clusters based on async and group replication on Kubernetes. Useful links:

Pre-requisites

  • Kubernetes 1.30+
  • Helm v3

Installation

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

Installing the chart

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

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

The chart can be customized using the following configurable parameters:

ParameterDescriptionDefault
image.repositoryPS Operator Container image namepercona/percona-server-mysql-operator
image.tagPS Operator Container image tag1.3.0
image.pullPolicyPS Operator Container pull policyAlways
imagePullSecretsPS Operator Pod pull secret[]
replicaCountPS Operator Pod quantity1
tolerationsList of node taints to tolerate[]
resourcesResource requests and limits{}
nodeSelectorLabels for Pod assignment{}
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
env.logStructuredEnable JSON format for logsfalse
env.logLevelSet appropriate log level (INFO, DEBUG, ERROR)INFO
env.maxConcurrentReconcilesLimits the number of parallel cluster reconciles1
disableTelemetryDisable sending PS Operator telemetry data to Perconafalse
watchNamespaceSet this variable if the target cluster namespace differs from operator's namespace.Release.Namespace
watchAllNamespacesSet if operator should be deployed in cluster-wide modefalse

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 ps-operator -f values.yaml percona/ps-operator

Deploy the database

To deploy Percona Server run the following command:

helm install my-db percona/ps-db

See more about Percona Server deployment in its chart here or in the Helm chart installation guide.

Deploy ps-operator with OpenTenant

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