diff --git a/charts/psmdb-db/README.md b/charts/psmdb-db/README.md index c43f33d0..1ca8fe90 100644 --- a/charts/psmdb-db/README.md +++ b/charts/psmdb-db/README.md @@ -86,6 +86,7 @@ The chart can be customized using the following configurable parameters: | `pmm.resources` | Set resources for PMM container | `{}` | | `pmm.mongodParams` | PMM mongod params | `""` | | `pmm.mongosParams` | PMM mongos params | `""` | +| `pmm.customClusterName` | PMM cluster name. If not set Operator uses cr.Name for PMM cluster name. | `""` | | | | `replsets.rs0.name` | ReplicaSet name | `rs0` | | `replsets.rs0.size` | ReplicaSet size (pod quantity) | `3` | diff --git a/charts/psmdb-db/templates/cluster.yaml b/charts/psmdb-db/templates/cluster.yaml index 256a685c..488cfb37 100644 --- a/charts/psmdb-db/templates/cluster.yaml +++ b/charts/psmdb-db/templates/cluster.yaml @@ -92,6 +92,9 @@ spec: containerSecurityContext: {{ .Values.pmm.containerSecurityContext | toYaml | indent 6 }} {{- end }} + {{- if .Values.pmm.customClusterName }} + customClusterName: {{ .Values.pmm.customClusterName }} + {{- end }} replsets: {{- range $k,$replset := .Values.replsets }} diff --git a/charts/psmdb-db/values.yaml b/charts/psmdb-db/values.yaml index 019d297a..76b6b238 100644 --- a/charts/psmdb-db/values.yaml +++ b/charts/psmdb-db/values.yaml @@ -85,10 +85,11 @@ pmm: repository: percona/pmm-client tag: 2.44.0 serverHost: monitoring-service -# mongodParams: "" -# mongosParams: "" -# resources: {} -# containerSecurityContext: {} +# customClusterName: "" +# mongodParams: "" +# mongosParams: "" +# resources: {} +# containerSecurityContext: {} replsets: rs0: