K8SPXC-1768 Updated the custom installation documentation#302
K8SPXC-1768 Updated the custom installation documentation#302nastena1606 wants to merge 4 commits intomainfrom
Conversation
Added how to override Helm release names
There was a problem hiding this comment.
Pull request overview
Updates the “custom installation” documentation to better explain how to customize both the Operator deployment and the Percona XtraDB Cluster, including guidance on overriding Helm-generated resource names.
Changes:
- Expanded kubectl-based customization steps to reference
deploy/bundle.yamlfor Operator deployment configuration anddeploy/cr.yamlfor cluster configuration. - Reworked the Helm section with examples for
--setvsvalues.yamlworkflows. - Added a new section explaining Helm
nameOverride/fullnameOverridenaming behavior and a small “common values” reference table.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ```bash | ||
| helm install my-db percona/pxc-db --version {{ release }} --namespace pxc \ | ||
| --set pxc.volumeSpec.resources.requests.storage=20Gi \ | ||
| --set backup.enabled=false | ||
| ``` | ||
|
|
||
| **Using a `values.yaml` file** | ||
|
|
||
| Create a `values.yaml` file with your custom parameters and pass it to `helm install` with the `-f` or `--values` flag: | ||
|
|
||
| ```bash | ||
| helm install my-db percona/ps-db --version {{ release }} --namespace <namespace> -f values.yaml | ||
| ``` | ||
|
|
||
| You can pass any of the Operator’s [Custom Resource options :octicons-link-external-16:](https://github.com/percona/percona-helm-charts/tree/main/charts/pxc-db#installing-the-chart) as a | ||
| `--set key=value[,key=value]` argument. | ||
| Example `values.yaml`: | ||
|
|
||
| The following example deploys a Percona XtraDB Cluster in the | ||
| `pxc` namespace, with disabled backups and 20 Gi storage: | ||
| ``` yaml title="values.yaml" | ||
| allowUnsafeConfigurations: true | ||
| sharding: | ||
| enabled: false | ||
| pxc: | ||
| size: 3 | ||
| volumeSpec: | ||
| pvc: | ||
| resources: | ||
| requests: | ||
| storage: 2Gi | ||
| backup: |
There was a problem hiding this comment.
The storage override key path is inconsistent between the --set example (pxc.volumeSpec.resources.requests.storage) and the values.yaml example (pxc.volumeSpec.pvc.resources.requests.storage). Please make these consistent and ensure they match the actual Helm values schema so readers don’t copy an incorrect key.
| 3. To customize Percona XtraDB Cluster, edit the required options in the `deploy/cr.yaml` file and apply it as follows: | ||
|
|
||
| ```bash | ||
| kubectl apply -f deploy/cr.yaml -n <namespace> | ||
| ``` | ||
|
|
||
|
|
||
| === "Helm" | ||
|
|
||
| To install Percona XtraDB Cluster with custom parameters, use the following command: | ||
| You can install the Operator deployment and the Percona XtraDB Cluster with custom parameters using Helm. Find what options you can customize in the [Operator chart documentation :octicons-link-external-16:](https://github.com/percona/percona-helm-charts/tree/main/charts/pxc-operator#installing-the-chart) and the [Percona Server for MySQL chart documentation :octicons-link-external-16:](https://github.com/percona/percona-helm-charts/tree/main/charts/pxc-db#installing-the-chart). | ||
|
|
||
| You can provide custom parameters to Helm using either the `--set` flag or a `values.yaml` file. The `--set` flag is convenient for overriding a small number of parameters directly in the command line, while a `values.yaml` file is preferable when you want to manage many custom settings in one place. Both methods are fully supported by Helm and can be used as needed for your deployment. |
There was a problem hiding this comment.
There are a couple of double-spaces in the prose (e.g., before deploy/cr.yaml and in “Cluster with”), which can cause awkward rendering in some Markdown processors. Please reduce to single spaces for consistency.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
106dc34 to
250272b
Compare
Added how to override Helm release names