Skip to content

pg-db: allow customization of pmm secret #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/pg-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ The chart can be customized using the following configurable parameters:
| `pmm.image.repository` | PMM Container image repository | `percona/pmm-client` |
| `pmm.image.tag` | PMM Container image tag | `2.44.0` |
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `pmm.secret` | PMM API key secret (populate PMM_SERVER_KEY) | `cluster1-pmm-secret`|
| `pmm.querySource` | PMM querySource, 'pgstatmonitor' or 'pgstatstatemenets'. | `pgstatmonitor` |
| `pmm.resources.requests.memory` | Container resource request for RAM | `200M` |
| `pmm.resources.requests.cpu` | Container resource request for CPU | `500m` |
Expand Down
2 changes: 1 addition & 1 deletion charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ spec:
enabled: {{ .Values.pmm.enabled }}
image: {{ .Values.pmm.image.repository }}:{{ .Values.pmm.image.tag }}
serverHost: {{ .Values.pmm.serverHost }}
secret: {{ include "pg-database.fullname" . }}-pmm-secret
secret: {{ .Values.pmm.secret | default (printf "%s-pmm-secret" (include "pg-database.fullname" .)) }}
querySource: {{ .Values.pmm.querySource }}

backups:
Expand Down
2 changes: 1 addition & 1 deletion charts/pg-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ pmm:
repository: percona/pmm-client
tag: 2.44.0
# imagePullPolicy: IfNotPresent
secret: cluster1-pmm-secret
# secret: cluster1-pmm-secret
serverHost: monitoring-service
querySource: pgstatmonitor
# resources:
Expand Down