ps-db
by Percona
A Helm chart for installing Percona Server Databases using the PS Operator.
About this chart
Percona Server for MySQL
This chart deploys Percona Server for MySQL Cluster on Kubernetes controlled by Percona Operator for MySQL.
Useful links:
Pre-requisites
- Percona Operator for MySQL running in your Kubernetes cluster. See installation details here or in the Operator Documentation.
- Kubernetes 1.30+
- Helm v3
Chart Details
This chart will deploy Percona Server for MySQL Cluster in Kubernetes. It will create a Custom Resource, and the Operator will trigger the creation of corresponding Kubernetes primitives: StatefulSets, Pods, Secrets, etc.
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-db percona/ps-db --version 1.3.0 --namespace my-namespace
The chart can be customized using the following configurable parameters:
| Parameter | Description | Default |
|---|---|---|
crVersion | CR Cluster Manifest version | 1.3.0 |
enableVolumeExpansion | Deprecated. Enable PVC volume expansion. Use storageScaling.enableVolumeScaling instead | false |
storageScaling.enableVolumeScaling | Allow the operator to resize/expand PVCs when the storage request changes in the spec | false |
storageScaling.enableExternalAutoscaling | Let an external controller manage storage autoscaling (skips the operator's built-in autoscaler) | false |
storageScaling.autoscaling.enabled | Enable automatic storage expansion based on disk usage (requires enableVolumeScaling) | false |
storageScaling.autoscaling.triggerThresholdPercent | Disk usage percentage that triggers automatic expansion (50-95) | 80 |
storageScaling.autoscaling.growthStep | Amount added to storage each time the threshold is exceeded | 2Gi |
storageScaling.autoscaling.maxSize | Maximum PVC size autoscaling will not grow beyond (must be at least 1Gi) | 100Gi |
finalizers:percona.com/delete-mysql-pods-in-order | Set this if you want to delete MySQL pods in order on cluster deletion | [] |
finalizers:percona.com/delete-ssl | Deletes objects created for SSL (Secret, certificate, and issuer) after the cluster deletion | [] |
pause | Stop PS Cluster safely | false |
unsafeFlags.mysqlSize | Allows users to start the cluster with less than 3 MySQL instances or with more than 9 (the maximum safe size) | false |
unsafeFlags.proxy | Allows users to configure a cluster with disabled proxy (HAProxy and Router). | false |
unsafeFlags.proxySize | Allows users to set proxy (HAProxy or Router) size to a value less than 2 Pods (if false, the Operator will automatically change unsafe parameters to safe defaults) | false |
unsafeFlags.orchestrator | Allows users to configure a cluster with disabled Orchestrator even if asynchronous replication is turned on | false |
unsafeFlags.orchestratorSize | Allows users to set orchestrator.size option to a value less than the minimum safe size (3) | false |
unsafeFlags.asyncFailoverWithPossibleDataLoss | Allows users to run an asynchronous replication cluster with backups disabled (failover may lose transactions stranded on the old primary) | false |
initContainer.image | An alternative image for the initial Operator installation | "" |
initContainer.containerSecurityContext | A custom Kubernetes Security Context for an init container | {} |
initContainer.resources.requests | Init container resource requests | {} |
initContainer.resources.limits | Init container resource limits | {} |
updateStrategy | Strategy for updating pods in a cluster (SmartUpdate, OnDelete, RollingUpdate) | SmartUpdate |
upgradeOptions.versionServiceEndpoint | Endpoint for actual PS Versions provider | https://check.percona.com |
upgradeOptions.apply | PS image to apply from version service - recommended, latest, actual version like 8.0.40-31 | disabled |
secretsName | Secret name for user passwords | <cluster_name>-secrets |
sslSecretName | Secret name for ssl certificates | {} |
ignoreAnnotations | Mark annotations which will be ignored by the operator | [] |
ignoreLabels | Mark labels which will be ignored by the operator | [] |
metadata.labels | The Kubernetes labels for all objects created by the operator | {} |
metadata.annotations | The Kubernetes annotations for all objects created by the operator | {} |
tls.SANs | Additional domains (SAN) to be added to the TLS certificate within the extended cert-manager configuration | [] |
tls.issuerConf.name | A cert-manager issuer name | "" |
tls.issuerConf.kind | A cert-manager issuer type | "" |
tls.issuerConf.group | A cert-manager issuer group | "" |
mysql.clusterType | MySQL Cluster type (async or group-replication) | group-replication |
mysql.autoRecovery | Enable/Disable auto recovery from full cluster crash | true |
mysql.autoConfig.enabled | Generate a full mysqld configuration from the Pod CPU/memory allocation. Requires mysql.resources to set both cpu and memory | true |
mysql.autoConfig.loadType | Expected workload profile: mostlyReads, someWrites, equalReadsWrites or heavyWrites | someWrites |
mysql.autoConfig.version | MySQL version the configuration is calculated for (e.g. 8.4). Required when mysql.autoConfig.enabled is true | 8.4 |
mysql.vaultSecretName | The Kubernetes Secret containing vault configuration for table encryption | `` |
mysql.podDisruptionBudget.maxUnavailable | MySQL failed Pods maximum quantity | 1 |
mysql.podDisruptionBudget.minAvailable | MySQL available Pods minimum quantity | `` |
mysql.image.repository | MySQL Container image repository | percona/percona-server |
mysql.image.tag | MySQL Container image tag | 8.4.11-11.1 |
mysql.imagePullPolicy | The policy used to update images | Always |
mysql.imagePullSecrets | MySQL Container pull secret | [] |
mysql.initContainer.image | An alternative image for the initial Operator installation | "" |
mysql.initContainer.containerSecurityContext | A custom Kubernetes Security Context for an init container | {} |
mysql.initContainer.resources.requests | Init container resource requests |
Deploy ps-db with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ps-db 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-db 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