psmdb-db
by Percona
A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
About this chart
Percona Server for MongoDB
This chart deploys Percona Server for MongoDB Cluster on Kubernetes controlled by Percona Operator for MongoDB.
Useful links:
Pre-requisites
- Percona Operator for MongoDB running in your Kubernetes cluster. See installation details here or in the Operator Documentation.
- Kubernetes 1.32+
- Helm v3
Chart Details
This chart will deploy Percona Server for MongoDB Cluster in Kubernetes. It will create a Custom Resource, and the Operator will trigger the creation of corresponding Kubernetes primitives: StatefulSets, Pods, Secrets, etc.
Installing the Chart
To install the chart with the psmdb release name using a dedicated namespace (recommended):
helm repo add percona https://percona.github.io/percona-helm-charts/
helm install my-db percona/psmdb-db --version 1.23.4 --namespace my-namespace
The chart can be customized using the following configurable parameters:
| Parameter | Description | Default |
|---|---|---|
crVersion | CR Cluster Manifest version | 1.23.1 |
pause | Stop PSMDB Database safely | false |
unmanaged | Start cluster and don't manage it (cross cluster replication) | false |
enableVolumeExpansion | Deprecated. Use storageScaling.enableVolumeScaling instead. Allows to resize PersistentVolumeClaims by changing .volumeSpec.persistentVolumeClaim.resources field | false |
enableExternalVolumeAutoscaling | Deprecated. Use storageScaling.enableExternalAutoscaling instead. Suppress storage discrepancy error if external volume autoscaling is enabled | false |
defaultRWConcern.readConcern | Cluster-wide default read concern level (one of local, available, majority) | "" |
defaultRWConcern.writeConcern.w | Cluster-wide default write concern w value (e.g. majority, "1", or a custom getLastErrorModes tag) | "" |
defaultRWConcern.writeConcern.wtimeout | Cluster-wide default write concern wtimeout in milliseconds (0 disables the timeout) | 0 |
unsafeFlags.tls | Allows users from configuring a cluster without TLS/SSL certificates | false |
unsafeFlags.replsetSize | Allows users from configuring a cluster with unsafe parameters: starting it with less than 3 replica set instances or with an even number of replica set instances without additional arbiter | false |
unsafeFlags.mongosSize | Allows users from configuring a sharded cluster with less than 3 config server Pods or less than 2 mongos Pods | false |
unsafeFlags.terminationGracePeriod | Allows users from configuring a sharded cluster without termination grace period for replica set | false |
unsafeFlags.backupIfUnhealthy | Allows running backup on a cluster with failed health checks | false |
clusterServiceDNSSuffix | The (non-standard) cluster domain to be used as a suffix of the Service name | "" |
clusterServiceDNSMode | Mode for the cluster service dns (Internal/ServiceMesh) | "" |
annotations | PSMDB custom resource annotations | {} |
ignoreAnnotations | The list of annotations to be ignored by the Operator | [] |
ignoreLabels | The list of labels to be ignored by the Operator | [] |
multiCluster.enabled | Enable Multi Cluster Services (MCS) cluster mode | false |
multiCluster.DNSSuffix | The cluster domain to be used as a suffix for multi-cluster Services used by Kubernetes | "" |
updateStrategy | Regulates the way how PSMDB Cluster Pods will be updated after setting a new image | SmartUpdate |
upgradeOptions.versionServiceEndpoint | Endpoint for actual PSMDB Versions provider | https://check.percona.com |
upgradeOptions.apply | PSMDB image to apply from version service - recommended, latest, actual version like 4.4.2-4 | disabled |
upgradeOptions.schedule | Cron formatted time to execute the update | "0 2 * * *" |
upgradeOptions.setFCV | Set feature compatibility version on major upgrade | false |
storageScaling.enableVolumeScaling | Allows to resize PersistentVolumeClaims by changing .volumeSpec.persistentVolumeClaim.resources field | false |
storageScaling.enableExternalAutoscaling | Suppress storage discrepancy error if external volume autoscaling is enabled | false |
storageScaling.autoscaling.enabled | Enable automatic storage expansion for all replica sets | false |
storageScaling.autoscaling.triggerThresholdPercent | Percentage of disk usage that triggers automatic storage expansion (50-95) | 80 |
storageScaling.autoscaling.growthStep | Amount to add to the storage when the threshold is exceeded (e.g., "2Gi") | "2Gi" |
storageScaling.autoscaling.maxSize | Maximum size for PVCs (e.g., "100Gi"). If set, autoscaling will not increase storage beyond this limit | "" |
finalizers:percona.com/delete-psmdb-pvc | Set this if you want to delete database persistent volumes on cluster deletion | [] |
finalizers:percona.com/delete-psmdb-pods-in-order | Set this if you want to delete PSMDB pods in order (primary last) | [] |
finalizers:percona.com/delete-pitr-chunks | Set this if you want to delete all pitr chunks on cluster deletion | [] |
image.repository | PSMDB Container image repository | percona/percona-server-mongodb |
image.tag | PSMDB Container image tag | 8.0.32-14 |
imagePullPolicy | The policy used to update images | Always |
imagePullSecrets | PSMDB Container pull secret | [] |
initImage.repository | Repository for custom init image | "" |
initImage.tag | Tag for custom init image | "" |
initContainerSecurityContext | A custom Kubernetes Security Context for a Container for the initImage | {} |
tls.mode | Control usage of TLS (allowTLS, preferTLS, requireTLS, disabled) | ` |
Deploy psmdb-db with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has psmdb-db on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpsmdb-db is pinned at v1.23.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply