Until recently, MongoDB used to be available on Cloud Foundry only as a developer service. It didn’t support any replication or sharding. However, today I enabled the BOSH tool chain to create MongoDB replicated clusters. Now you can use BOSH to build ready-for-production environments. Sharding is not yet available, but will be implemented soon. You can find the code on my GitHub page.
I’ve also recorded this video tutorial (see below) that explains how to set up such MongoDB cluster using BOSH: