Skip to content

Commit

Permalink
Merge pull request #247 from tuotempo/pmm_extra_params
Browse files Browse the repository at this point in the history
CLOUD-838 - Add pxcParams and proxysqlParams keys to pmm
  • Loading branch information
tplavcic authored Jan 31, 2024
2 parents 77c0023 + fcfb662 commit 9d9d3d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pxc-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.13.0
description: A Helm chart for installing Percona XtraDB Cluster Databases using the PXC Operator.
name: pxc-db
home: https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html
version: 1.13.5
version: 1.13.6
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
2 changes: 2 additions & 0 deletions charts/pxc-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ The chart can be customized using the following configurable parameters:
| `pmm.serverUser` | Username for accessing PXC database internals | `admin` |
| `pmm.resources.requests` | PMM Container resource requests | `{"memory": "150M", "cpu": "300m"}` |
| `pmm.resources.limits` | PMM Container resource limits | `{}` |
| `pmm.pxcParams` | Additional parameters which will be passed to the [pmm-admin add mysql](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/mysql.html#add-service) command for `pxc` Pods | `""` |
| `pmm.proxysqlParams` | Additional parameters which will be passed to the [pmm-admin add proxysql](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/proxysql.html) command for `proxysql` Pods | `""` |
| |
| `backup.enabled` | Enables backups for PXC cluster | `true` |
| `backup.allowParallel` | Allow taking multiple backups in parallel | `true` |
Expand Down
6 changes: 6 additions & 0 deletions charts/pxc-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ spec:
{{- end }}
serverHost: {{ $pmm.serverHost }}
serverUser: {{ $pmm.serverUser }}
{{- if $pmm.pxcParams }}
pxcParams: {{ $pmm.pxcParams }}
{{- end }}
{{- if $pmm.proxysqlParams }}
proxysqlParams: {{ $pmm.proxysqlParams }}
{{- end }}
resources:
requests:
{{ tpl ($pmm.resources.requests | toYaml) $ | indent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pxc-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ pmm:
imagePullSecrets: []
serverHost: monitoring-service
serverUser: admin
# pxcParams: "--disable-tablestats-limit=2000"
# proxysqlParams: "--custom-labels=CUSTOM-LABELS"
resources:
requests:
memory: 150M
Expand Down

0 comments on commit 9d9d3d1

Please sign in to comment.