So you can write a BOSH 'release' which is a script for setting up a database cluster with all the necessary, like this:
https://github.com/cloudfoundry/cf-mysql-release
However, you have to buy into BOSH and CF to make use of this
Also, most of the interesting and high-quality services are part of Pivotal's paid version of CF. Which might well be worth the money - many of the services are built by colleagues of mine, and i can assure you that they are of the finest quality! If not, there are a bunch of open-source contributed services. For example, a metrics service with InfluxDB and Grafana:
https://github.com/cloudfoundry-community/metrics-boshreleas...
A logging service with Logstash and Elasticsearch:
https://github.com/cloudfoundry-community/logstash-docker-bo...
PostgreSQL:
https://github.com/cloudfoundry-community/postgresql-docker-...
I have no idea how highly-available and resilient these are, though. It's much harder to write an HA service release than a normal one.