ps-operator
by Percona
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:
| Parameter | Description | Default |
|---|---|---|
image.repository | PS Operator Container image name | percona/percona-server-mysql-operator |
image.tag | PS Operator Container image tag | 1.3.0 |
image.pullPolicy | PS Operator Container pull policy | Always |
imagePullSecrets | PS Operator Pod pull secret | [] |
replicaCount | PS Operator Pod quantity | 1 |
tolerations | List of node taints to tolerate | [] |
resources | Resource requests and limits | {} |
nodeSelector | Labels for Pod assignment | {} |
rbac.create | If false RBAC will not be created. RBAC resources will need to be created manually | true |
serviceAccount.create | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | true |
env.logStructured | Enable JSON format for logs | false |
env.logLevel | Set appropriate log level (INFO, DEBUG, ERROR) | INFO |
env.maxConcurrentReconciles | Limits the number of parallel cluster reconciles | 1 |
disableTelemetry | Disable sending PS Operator telemetry data to Percona | false |
watchNamespace | Set this variable if the target cluster namespace differs from operator's namespace | .Release.Namespace |
watchAllNamespaces | Set if operator should be deployed in cluster-wide mode | false |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartps-operator is pinned at v1.3.0 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