Skip to content
Consume GCP Pub Sub Services through Service Broker
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
.mvn/wrapper
gradle/wrapper
src/main
.drone.yml
.gitignore
Dockerfile
LICENSE
README.md
hybrid-app-using-gcp-broker.yaml
mvnw
mvnw.cmd
pom.xml

README.md

Invoke GCP pubsub services from APP deployed in CCP

This is a working sample for building Java/J2EE for building spring Boot app by consuming Google CLOUD Pub Sub Services through Open Service Broker API.

pre-requisite/Dependency for Kubernets deployment

To run this application successfully in in CCP Kubenets, following action items should be completed before deploy the app as a pre-requisite

  • on-premises environment, GCP Service Broker shoud be registered.
  • on-premises, Service Instances and Service Binding should be done and it should be in ready state.
  • Appliction Docker container should be pushed to Docker Hub or Google Container Registry.

How to Build this application?

* Local Build  :  mvn clean package 
* Docker Build :  docker build -t  hybrid-gcp-ccp-app

How to Deploy this application

* Standlone - native approach: java -jar target/hybrid-gcp-ccp-app-0.1.0.jar
* Kubernets - hybrid through service broker: kubectl apply -f hybrid-app-using-gcp-broker.yaml

How to test this application

curl -d '{"customerID":"ABC-1891","State_":"NY","gender":"M"," SeniorCitizen":0,"Partner":true,"Dependents":true} ' -H "Content-Type: application/json" -X POST http://localhost:8080/publish/

Response

{
 "status" : "ok"
}

License

MIT

You can’t perform that action at this time.