Install Percona Server for MongoDB using Helm

Helm is the package manager for Kubernetes.

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 Percona Operator for Percona Server for MongoDB:

    helm install my-op percona/psmdb-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 MongoDB:

    helm install my-db percona/psmdb-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 MongoDB when you install its Helm chart (use any name you like).

Installing Percona Server for MongoDB with customized parameters

The command above installs Percona Server for MongoDB 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 Operator’s Custom Resource options.

The following example will deploy a Percona Server for MongoDB Cluster in the psmdb namespace, with disabled backups and 20 Gi storage:

helm install my-db percona/psmdb-db --namespace psmdb \
  --set replset.volumeSpec.pvc.resources.requests.storage=20Gi \
  --set backup.enabled=false

Table Of Contents

Previous topic

Deploy Percona server for MongoDB with Service Broker

Next topic

Users

Contact Us

For free technical help, visit the Percona Community Forum.
To report bugs or submit feature requests, open a JIRA ticket.
For paid support and managed or professional services, contact Percona Sales.