2022-12-27 13:56:25 +00:00
# Percona Operator For MySQL
[Percona XtraDB Cluster (PXC) ](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/index.html ) is a database clustering solution for MySQL. Percona Operator For MySQL allows users to deploy and manage Percona XtraDB Clusters on Kubernetes.
Useful links
* [Operator Github repository ](https://github.com/percona/percona-xtradb-cluster-operator )
* [Operator Documentation ](https://www.percona.com/doc/kubernetes-operator-for-pxc/index.html )
## Pre-requisites
2023-07-11 21:23:57 +00:00
* Kubernetes 1.23+
2022-12-27 13:56:25 +00:00
* Helm v3
# Installation
This chart will deploy the Operator Pod for the further Percona XtraDB Cluster creation in Kubernetes.
## Installing the Chart
To install the chart with the `pxc` release name using a dedicated namespace (recommended):
```sh
helm repo add percona https://percona.github.io/percona-helm-charts/
2023-07-11 21:23:57 +00:00
helm install my-operator percona/pxc-operator --version 1.13.0 --namespace my-namespace
2022-12-27 13:56:25 +00:00
```
The chart can be customized using the following configurable parameters:
2023-01-24 15:10:05 +00:00
| Parameter | Description | Default |
| ------------------------------- | -----------------------------------------------------------------------------------------------| -------------------------------------------------|
2023-07-11 21:23:57 +00:00
| `image` | PXC Operator Container image full path | `percona/percona-xtradb-cluster-operator:1.13.0` |
2023-01-24 15:10:05 +00:00
| `imagePullPolicy` | PXC Operator Container pull policy | `Always` |
2023-08-04 18:31:53 +00:00
| `containerSecurityContext` | PXC Operator Container securityContext | `{}` |
2023-01-24 15:10:05 +00:00
| `imagePullSecrets` | PXC Operator Pod pull secret | `[]` |
| `replicaCount` | PXC Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
2024-02-09 14:36:54 +00:00
| `podAnnotations` | Operator Pod user-defined annotations | `{}` |
2023-01-24 15:10:05 +00:00
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
| `logStructured` | Force PXC operator to print JSON-wrapped log messages | `false` |
| `logLevel` | PXC Operator logging level | `INFO` |
| `disableTelemetry` | Disable sending PXC Operator telemetry data to Percona | `false` |
| `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` |
2024-02-09 14:36:54 +00:00
| `extraEnvVars` | Custom pod environment variables | `[]` |
2022-12-27 13:56:25 +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 pxc-operator -f values.yaml percona/pxc-operator
```
## Deploy the database
To deploy Percona XtraDB Cluster run the following command:
```sh
helm install my-db percona/pxc-db
```
See more about Percona XtraDB Cluster in its chart [here ](https://github.com/percona/percona-helm-charts/blob/main/charts/pxc-db ) or in the [Helm chart installation guide ](https://www.percona.com/doc/kubernetes-operator-for-pxc/helm.html ).