ps-db

by Percona

Helm chartv1.3.0App 1.3.0

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:

ParameterDescriptionDefault
crVersionCR Cluster Manifest version1.3.0
enableVolumeExpansionDeprecated. Enable PVC volume expansion. Use storageScaling.enableVolumeScaling insteadfalse
storageScaling.enableVolumeScalingAllow the operator to resize/expand PVCs when the storage request changes in the specfalse
storageScaling.enableExternalAutoscalingLet an external controller manage storage autoscaling (skips the operator's built-in autoscaler)false
storageScaling.autoscaling.enabledEnable automatic storage expansion based on disk usage (requires enableVolumeScaling)false
storageScaling.autoscaling.triggerThresholdPercentDisk usage percentage that triggers automatic expansion (50-95)80
storageScaling.autoscaling.growthStepAmount added to storage each time the threshold is exceeded2Gi
storageScaling.autoscaling.maxSizeMaximum PVC size autoscaling will not grow beyond (must be at least 1Gi)100Gi
finalizers:percona.com/delete-mysql-pods-in-orderSet this if you want to delete MySQL pods in order on cluster deletion[]
finalizers:percona.com/delete-sslDeletes objects created for SSL (Secret, certificate, and issuer) after the cluster deletion[]
pauseStop PS Cluster safelyfalse
unsafeFlags.mysqlSizeAllows users to start the cluster with less than 3 MySQL instances or with more than 9 (the maximum safe size)false
unsafeFlags.proxyAllows users to configure a cluster with disabled proxy (HAProxy and Router).false
unsafeFlags.proxySizeAllows 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.orchestratorAllows users to configure a cluster with disabled Orchestrator even if asynchronous replication is turned onfalse
unsafeFlags.orchestratorSizeAllows users to set orchestrator.size option to a value less than the minimum safe size (3)false
unsafeFlags.asyncFailoverWithPossibleDataLossAllows users to run an asynchronous replication cluster with backups disabled (failover may lose transactions stranded on the old primary)false
initContainer.imageAn alternative image for the initial Operator installation""
initContainer.containerSecurityContextA custom Kubernetes Security Context for an init container{}
initContainer.resources.requestsInit container resource requests{}
initContainer.resources.limitsInit container resource limits{}
updateStrategyStrategy for updating pods in a cluster (SmartUpdate, OnDelete, RollingUpdate)SmartUpdate
upgradeOptions.versionServiceEndpointEndpoint for actual PS Versions providerhttps://check.percona.com
upgradeOptions.applyPS image to apply from version service - recommended, latest, actual version like 8.0.40-31disabled
secretsNameSecret name for user passwords<cluster_name>-secrets
sslSecretNameSecret name for ssl certificates{}
ignoreAnnotationsMark annotations which will be ignored by the operator[]
ignoreLabelsMark labels which will be ignored by the operator[]
metadata.labelsThe Kubernetes labels for all objects created by the operator{}
metadata.annotationsThe Kubernetes annotations for all objects created by the operator{}
tls.SANsAdditional domains (SAN) to be added to the TLS certificate within the extended cert-manager configuration[]
tls.issuerConf.nameA cert-manager issuer name""
tls.issuerConf.kindA cert-manager issuer type""
tls.issuerConf.groupA cert-manager issuer group""
mysql.clusterTypeMySQL Cluster type (async or group-replication)group-replication
mysql.autoRecoveryEnable/Disable auto recovery from full cluster crashtrue
mysql.autoConfig.enabledGenerate a full mysqld configuration from the Pod CPU/memory allocation. Requires mysql.resources to set both cpu and memorytrue
mysql.autoConfig.loadTypeExpected workload profile: mostlyReads, someWrites, equalReadsWrites or heavyWritessomeWrites
mysql.autoConfig.versionMySQL version the configuration is calculated for (e.g. 8.4). Required when mysql.autoConfig.enabled is true8.4
mysql.vaultSecretNameThe Kubernetes Secret containing vault configuration for table encryption``
mysql.podDisruptionBudget.maxUnavailableMySQL failed Pods maximum quantity1
mysql.podDisruptionBudget.minAvailableMySQL available Pods minimum quantity``
mysql.image.repositoryMySQL Container image repositorypercona/percona-server
mysql.image.tagMySQL Container image tag8.4.11-11.1
mysql.imagePullPolicyThe policy used to update imagesAlways
mysql.imagePullSecretsMySQL Container pull secret[]
mysql.initContainer.imageAn alternative image for the initial Operator installation""
mysql.initContainer.containerSecurityContextA custom Kubernetes Security Context for an init container{}
mysql.initContainer.resources.requestsInit 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartps-db 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