56 lines
3.2 KiB
Markdown
56 lines
3.2 KiB
Markdown
|
# 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
|
||
|
* Kubernetes 1.19+
|
||
|
* 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/
|
||
|
helm install my-operator percona/psmdb-operator --version 1.13.0 --namespace my-namespace
|
||
|
```
|
||
|
|
||
|
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` |
|
||
|
| `image.tag` | PSMDB Operator Container image tag | `1.13.0` |
|
||
|
| `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 | `""` |
|
||
|
|
||
|
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).
|