Sample Python application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.
For information on the Service Registry product in Tanzu Platform for Cloud Foundry, please see the documentation.
- Create a Service Registry instance:
cf create-service p.service-registry standard greeter-service-registry
- Install dependencies
# geeter-messages app
pip install -r greeter-messages/requirements.txt
# greeter app
pip install -r greeter/requirements.txt
- Push applications:
cf push
# or push each app separately
cf push greeter-messages
cf push greeter
Call [ROUTE]/hello, where [ROUTE] is the route bound to the greeter application, with optional name and salutation parameters.
$ curl "greeter.apps.example.cf-app.com/hello?name=John"
Hello, John!