Reputation: 17
I have a requirement of binding my spring boot app (which is running on PCF) with mysql service instance of a different microservice. I believe application level service bindings can help me but I get only a spring cloud stream example here https://docs.spring.io/spring-cloud-dataflow-admin-cloudfoundry/docs/current-SNAPSHOT/reference/html/getting-started-service-binding-at-application-level.html
It would be great if somebody can help me in finding an example of application specifc service binding in pcf for a spring boot app .
Thanks, Nilanjan
Upvotes: 0
Views: 120
Reputation: 6126
Nilanjan
As pointed out in the document you've provided you should look at this in two parts
So, if your microservice name is "bar" and PCF service name is "foo", then the directive for binding such service to your application would be:
dataflow:>stream deploy --name myFlow --properties "deployer.bar.cloudfoundry.services=foo"
Hope this helps, but let us know if it is still unclear or you need some more information.
Upvotes: 0