Sample Pyhton application demonstrating the use of Config Server in Tanzu Platform for Cloud Foundry.
For information on the Config Server product in Tanzu Platform for Cloud Foundry, please see the documentation.
- Create a Config Server instance:
cf create-service p.config-server standard cook-config-server -c '{ "git": { "uri": "https://github.com/spring-cloud-services-samples/cook-config" } }'
- Install dependencies:
pip install -r requirements.txt
- Push the application:
cf push
Visit [ROUTE]/restaurant, where [ROUTE] is the route bound to the application. The "special" of the day will be taken from the configuration repository and the value of cook.special.
$ curl https://cook.apps.example.cf-app.com/restaurant
Today's special is: Cake a la mode