2022-11-03 03:10:49 +00:00
# Percona Operator for MongoDB
Percona Operator for MongoDB allows users to deploy and manage Percona Server for MongoDB Clusters on Kubernetes.
Useful links:
- [Operator Github repository ](https://github.com/percona/percona-server-mongodb-operator )
- [Operator Documentation ](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html )
## Pre-requisites
2023-03-14 21:10:14 +00:00
* Kubernetes 1.22+
2022-11-03 03:10:49 +00:00
* Helm v3
# Installation
This chart will deploy the Operator Pod for the further Percona Server for MongoDB creation in Kubernetes.
## Installing the chart
To install the chart with the `psmdb` release name using a dedicated namespace (recommended):
```sh
helm repo add percona https://percona.github.io/percona-helm-charts/
2023-03-14 21:10:14 +00:00
helm install my-operator percona/psmdb-operator --version 1.14.0 --namespace my-namespace
2022-11-03 03:10:49 +00:00
```
The chart can be customized using the following configurable parameters:
| Parameter | Description | Default |
| ------------------------------- | ------------------------------------------------------------------------------| ------------------------------------------|
| `image.repository` | PSMDB Operator Container image name | `percona/percona-server-mongodb-operator` |
2023-03-14 21:10:14 +00:00
| `image.tag` | PSMDB Operator Container image tag | `1.14.0` |
2022-11-03 03:10:49 +00:00
| `image.pullPolicy` | PSMDB Operator Container pull policy | `Always` |
| `image.pullSecrets` | PSMDB Operator Pod pull secret | `[]` |
| `replicaCount` | PSMDB Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
| `watchNamespace` | Set when a different from default namespace is needed to watch | `""` |
2023-02-02 17:01:16 +00:00
| `rbac.create` | If false RBAC will not be created. RBAC resources will need to be created manually | `true` |
| `serviceAccount.create` | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | `true` |
2022-11-03 03:10:49 +00:00
Specify parameters using `--set key=value[,key=value]` argument to `helm install`
Alternatively a YAML file that specifies the values for the parameters can be provided like this:
```sh
helm install psmdb-operator -f values.yaml percona/psmdb-operator
```
## Deploy the database
To deploy Percona Server for MongoDB run the following command:
```sh
helm install my-db percona/psmdb-db
```
See more about Percona Server for MongoDB deployment in its chart [here ](https://github.com/percona/percona-helm-charts/tree/main/charts/psmdb-db ) or in the [Helm chart installation guide ](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/helm.html ).