Unable to install standalone pod with helm chart

It’s probably something basic, but I am unable to install a standalone server with this helm command. It always produces three replicas rs0 pods). I just want one pod, but maybe my architecture flag is off in this helm command?

helm install test-mongo-db percona/psmdb-db \
  --set "image.repository=percona/percona-server-mongodb" \
  --set "image.tag=5.0.4-3" \
  --set "architecture=standalone" \
  --set "secrets.users=mongodb-test-secrets" \
  --set "upgradeOptions.apply=Never" \
  --set "sharding.enabled=false" \
  --set "backup.enabled=false"
1 Like

I changed to the following to get just one replica deployed (same as standalone). The key is the allowUnsafeConfigurations, otherwise the operator still forces 3 replicas for HA.

helm install test-mongo-db percona/psmdb-db \
  --set "image.repository=percona/percona-server-mongodb" \
  --set "image.tag=5.0.4-3" \
  --set "allowUnsafeConfigurations=true" \
  --set "replsets[0].name=rst0" \
  --set "replsets[0].size=1" \
  --set "secrets.users=test-mongodb-secrets" \
  --set "replsets[0].volumeSpec.persistentVolumeClaim.resources.requests.storage=8Gi" \
  --set "replsets[0].resources.requests.memory=500Mi" \
  --set "replsets[0].resources.requests.cpu=300m" \
  --set "replsets[0].resources.limits.memory=500Mi" \
  --set "replsets[0].resources.limits.cpu=500m" \
  --set "upgradeOptions.apply=Never" \
  --set "sharding.enabled=false" \
  --set "backup.enabled=false"
1 Like