# Mongodb 5 deploy running, but pods \`deploy-mongo-db-psm-cfg-2\` and \`deploy-mongo-db-psm-sb0-2\` are pending

**URL:** <https://forums.percona.com/t/mongodb-5-deploy-running-but-pods-deploy-mongo-db-psm-cfg-2-and-deploy-mongo-db-psm-sb0-2-are-pending/14411>\
**Category:** Percona Operator for MongoDB\
**Created:** [February 15, 2022, 6:35pm UTC](https://forums.percona.com/t/mongodb-5-deploy-running-but-pods-deploy-mongo-db-psm-cfg-2-and-deploy-mongo-db-psm-sb0-2-are-pending/14411 "2022-02-15T18:35:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Heckel](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/tim_heckel/32/5834_2.png) [@Tim\_Heckel](https://forums.percona.com/u/Tim_Heckel)\
**Post date:** [February 15, 2022, 6:35pm UTC](https://forums.percona.com/t/mongodb-5-deploy-running-but-pods-deploy-mongo-db-psm-cfg-2-and-deploy-mongo-db-psm-sb0-2-are-pending/14411/1 "2022-02-15T18:35:45Z")

</div>

I was able to deploy mongo 5.x using this helm command:

```auto
helm install deploy-mongo-db percona/psmdb-db --namespace default \
  --set "image.repository=percona/percona-server-mongodb" \
  --set "image.tag=5.0.4-3" \
  --set "replsets[0].name=sb0" \
  --set "replsets[0].size=3" \
  --set "secrets.users=deploy-mongodb-secrets" \
  --set "replsets[0].volumeSpec.persistentVolumeClaim.resources.requests.storage=60Gi" \
  --set "replsets[0].resources.requests.memory=2Gi" \
  --set "replsets[0].resources.requests.cpu=1000m" \
  --set "replsets[0].resources.limits.memory=3Gi" \
  --set "replsets[0].resources.limits.cpu=1500m" \
  --set "upgradeOptions.apply=Never" \
  --set "sharding.enabled=true" \
  --set "backup.enabled=true" \
  --set "backup.storages.s3-us-east.type=s3" \
  --set "backup.storages.s3-us-east.s3.credentialsSecret=deploy-mongodb-backup-s3" \
  --set "backup.storages.s3-us-east.s3.bucket=app.deploy.com-backup" \
  --set "backup.storages.s3.s3-us-east.region=us-east-1" \
  --set "backup.storages.s3.s3-us-east.endpointUrl=https://us-east-1.linodeobjects.com" \
  --set "backup.pitr.enabled=true" \
  --set "backup.pitr.oplogSpanMin=15" \
  --set "backup.tasks[0].name=daily-s3-us-west" \
  --set "backup.tasks[0].enabled=true" \
  --set "backup.tasks[0].schedule=0 0 * * *" \
  --set "backup.tasks[0].keep=14" \
  --set "backup.tasks[0].storageName=s3-us-east" \
  --set "backup.tasks[0].compressionType=gzip"

```

I can log into the mongo 5.0.4 cluster and all is well, except that pods `deploy-mongo-db-psm-cfg-2` and `deploy-mongo-db-psm-sb0-2` are each pending with the below error (same for both):

`0/5 nodes are available: 2 node(s) didn't match pod anti-affinity rules, 3 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate.`

All the other pods are running successfully. Any thoughts? Thank you!

---

<div class="post-metadata">

**Author:** ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)\
**Post date:** [February 17, 2022, 11:07am UTC](https://forums.percona.com/t/mongodb-5-deploy-running-but-pods-deploy-mongo-db-psm-cfg-2-and-deploy-mongo-db-psm-sb0-2-are-pending/14411/2 "2022-02-17T11:07:35Z")

</div>

Looks like that you provide only 2 nodes instead of 3 nodes. The idea is that each member of the replicaset “lives” on a seperate node (anti affinity / hostname)

---

<div class="post-metadata">

**Author:** ![Tim\_Heckel](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/tim_heckel/32/5834_2.png) [@Tim\_Heckel](https://forums.percona.com/u/Tim_Heckel)\
**Post date:** [February 17, 2022, 4:41pm UTC](https://forums.percona.com/t/mongodb-5-deploy-running-but-pods-deploy-mongo-db-psm-cfg-2-and-deploy-mongo-db-psm-sb0-2-are-pending/14411/3 "2022-02-17T16:41:18Z")

</div>

Thank you! That was indeed the problem. I had discovered that as well, and hadn’t had a chance to update yet.
