Skip to content

Install Percona Distribution for PostgreSQL with customized parameters

You can customize the configuration of Percona Distribution for PostgreSQL and install it with customized parameters.

To check available configuration options, see deploy/cr.yaml and Custom Resource Options.

To customize the configuration when installing with kubectl, do the following:

  1. Clone the repository with all manifests and source code by executing the following command:

    $ git clone -b v2.3.1
  2. Edit the required options and apply your modified deploy/cr.yaml file as follows:

    $ kubectl apply -f deploy/cr.yaml -n postgres-operator        

To install Percona Distribution for PostgreSQL with custom parameters using Helm, use the following command:

$ helm install --set key=value

You can pass any of the Operator’s Custom Resource options as a --set key=value[,key=value] argument.

The following example deploys a PostgreSQL 16 based cluster in the my-namespace namespace, with enabled Percona Monitoring and Management (PMM) :

$ helm install my-db percona/pg-db --version 2.3.1 --namespace my-namespace \
  --set postgresVersion=16 \
  --set pmm.enabled=true

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-05-16