Skip to content

Install Percona Server for MySQL using Helm

Helm is the package manager for Kubernetes. Percona Helm charts can be found in percona/percona-helm-charts repository on Github.

Pre-requisites

Install Helm following its official installation instructions .

Note

Helm v3 is needed to run the following steps.

Installation

  1. Add the Percona’s Helm charts repository and make your Helm client up to date with it:

    $ helm repo add percona https://percona.github.io/percona-helm-charts/
    $ helm repo update
    
  2. Install the Percona Operator for MySQL:

    $ helm install my-op percona/ps-operator
    

    The my-op parameter in the above example is the name of a new release object which is created for the Operator when you install its Helm chart (use any name you like).

    Note

    If nothing explicitly specified, helm install command will work with default namespace. To use different namespace, provide it with the following additional parameter: --namespace my-namespace.

  3. Install Percona Server for MySQL:

    $ helm install my-db percona/ps-db
    

    The my-db parameter in the above example is the name of a new release object which is created for the Percona Server for MySQL when you install its Helm chart (use any name you like).

Installing Percona Server for MySQL with customized parameters

The command above installs Percona Server for MySQL with default parameters. Custom options can be passed to a helm install command as a --set key=value[,key=value] argument. The options passed with a chart can be any of the Custom Resource options .

The following example will deploy a Percona Server for MySQL in the my-namespace namespace, with disabled backups and 20 Gi storage:

$ helm install my-db percona/ps-db \
  --set mysql.volumeSpec.pvc.resources.requests.storage=20Gi \
  --set backup.enabled=false

Next steps

Connect to Percona Server for MySQL

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services. Join K8S Squad to benefit from early access to features and “ask me anything” sessions with the Experts.


Last update: 2024-06-17