- PWS or PCF
- Cloud Foundry CLI
- Network Access CF CLI plugin
- Spring Boot
- Spring Cloud Services
- Circuit Breaker
- Config Server
- Service Registry
- Spring Cloud Bus
- Spring Cloud Netflix
- Zuul
- Feign
cf create-service p-service-registry standard service-registry
cf create-service p-circuit-breaker-dashboard standard circuit-breaker
cf create-service p-config-server standard config-server -c '{"git": { "uri": "https://github.com/vchrisb/cf-scs-demo", "searchPaths": "spring-cloud-config"}}'
cf create-service cloudamqp lemur rabbitmq
cf allow-access travel-client travel-service --protocol tcp --port 8080
cf allow-access travel-gateway travel-service --protocol tcp --port 8080
cf allow-access travel-gateway travel-client --protocol tcp --port 8080
cf allow-access travel-gateway travel-ui --protocol tcp --port 8080
mvn clean package
cf push
https://travel-gateway.cfapps.io/travel-ui/greeting
https://travel-gateway.cfapps.io/travel-client/destinations
https://travel-gateway.cfapps.io/travel-service/destinations
To test spring cloud config
, modify and commit spring-cloud-config/application.yml
and reload all apps by issuing:
curl -X POST https://travel-gateway.cfapps.io/bus/refresh