psmdb-db

by Percona

Helm chartv1.23.4App 1.23.1

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:

ParameterDescriptionDefault
crVersionCR Cluster Manifest version1.23.1
pauseStop PSMDB Database safelyfalse
unmanagedStart cluster and don't manage it (cross cluster replication)false
enableVolumeExpansionDeprecated. Use storageScaling.enableVolumeScaling instead. Allows to resize PersistentVolumeClaims by changing .volumeSpec.persistentVolumeClaim.resources fieldfalse
enableExternalVolumeAutoscalingDeprecated. Use storageScaling.enableExternalAutoscaling instead. Suppress storage discrepancy error if external volume autoscaling is enabledfalse
defaultRWConcern.readConcernCluster-wide default read concern level (one of local, available, majority)""
defaultRWConcern.writeConcern.wCluster-wide default write concern w value (e.g. majority, "1", or a custom getLastErrorModes tag)""
defaultRWConcern.writeConcern.wtimeoutCluster-wide default write concern wtimeout in milliseconds (0 disables the timeout)0
unsafeFlags.tlsAllows users from configuring a cluster without TLS/SSL certificatesfalse
unsafeFlags.replsetSizeAllows 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 arbiterfalse
unsafeFlags.mongosSizeAllows users from configuring a sharded cluster with less than 3 config server Pods or less than 2 mongos Podsfalse
unsafeFlags.terminationGracePeriodAllows users from configuring a sharded cluster without termination grace period for replica setfalse
unsafeFlags.backupIfUnhealthyAllows running backup on a cluster with failed health checksfalse
clusterServiceDNSSuffixThe (non-standard) cluster domain to be used as a suffix of the Service name""
clusterServiceDNSModeMode for the cluster service dns (Internal/ServiceMesh)""
annotationsPSMDB custom resource annotations{}
ignoreAnnotationsThe list of annotations to be ignored by the Operator[]
ignoreLabelsThe list of labels to be ignored by the Operator[]
multiCluster.enabledEnable Multi Cluster Services (MCS) cluster modefalse
multiCluster.DNSSuffixThe cluster domain to be used as a suffix for multi-cluster Services used by Kubernetes""
updateStrategyRegulates the way how PSMDB Cluster Pods will be updated after setting a new imageSmartUpdate
upgradeOptions.versionServiceEndpointEndpoint for actual PSMDB Versions providerhttps://check.percona.com
upgradeOptions.applyPSMDB image to apply from version service - recommended, latest, actual version like 4.4.2-4disabled
upgradeOptions.scheduleCron formatted time to execute the update"0 2 * * *"
upgradeOptions.setFCVSet feature compatibility version on major upgradefalse
storageScaling.enableVolumeScalingAllows to resize PersistentVolumeClaims by changing .volumeSpec.persistentVolumeClaim.resources fieldfalse
storageScaling.enableExternalAutoscalingSuppress storage discrepancy error if external volume autoscaling is enabledfalse
storageScaling.autoscaling.enabledEnable automatic storage expansion for all replica setsfalse
storageScaling.autoscaling.triggerThresholdPercentPercentage of disk usage that triggers automatic storage expansion (50-95)80
storageScaling.autoscaling.growthStepAmount to add to the storage when the threshold is exceeded (e.g., "2Gi")"2Gi"
storageScaling.autoscaling.maxSizeMaximum size for PVCs (e.g., "100Gi"). If set, autoscaling will not increase storage beyond this limit""
finalizers:percona.com/delete-psmdb-pvcSet this if you want to delete database persistent volumes on cluster deletion[]
finalizers:percona.com/delete-psmdb-pods-in-orderSet this if you want to delete PSMDB pods in order (primary last)[]
finalizers:percona.com/delete-pitr-chunksSet this if you want to delete all pitr chunks on cluster deletion[]
image.repositoryPSMDB Container image repositorypercona/percona-server-mongodb
image.tagPSMDB Container image tag8.0.32-14
imagePullPolicyThe policy used to update imagesAlways
imagePullSecretsPSMDB Container pull secret[]
initImage.repositoryRepository for custom init image""
initImage.tagTag for custom init image""
initContainerSecurityContextA custom Kubernetes Security Context for a Container for the initImage{}
tls.modeControl 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpsmdb-db is pinned at v1.23.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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