/
MongoDB pod cannot mount persistent volume
MongoDB pod cannot mount persistent volume
Problem
MongoDB pods cannot start due to persistent volume mounting error.
Solution
Recreate persistent volume claim.
Open MongoDB statefulset deployment yaml.
Set
replicas
to 0. Save and wait for all pods terminates.Go to Storage → Persistent volume claims. Select the persistent volume claim belongs to the failing mogodb deployment and delete it.
Go back to the MongoDB stateful set deployment yaml and change replicas to 1.
The pod should be able to start now.
, multiple selections available,
Related content
Containers not able to start
Containers not able to start
More like this
Upgrade to a new image version
Upgrade to a new image version
More like this
Internal hosting with VMWare VM - Docker container restarts every 30 minutes
Internal hosting with VMWare VM - Docker container restarts every 30 minutes
More like this
Upgrade to a new version
Upgrade to a new version
More like this
Deploying New OneList Instance to Kubernetes
Deploying New OneList Instance to Kubernetes
More like this