Name: gcp-service-broker
Owner: Google Cloud Platform
Description: Cloud Foundry service broker for Google Cloud Platform services
Created: 2016-09-19 17:24:39.0
Updated: 2018-05-22 21:31:58.0
Pushed: 2018-05-14 21:28:23.0
Size: 869632
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the home of the Cloud Foundry Service Broker for Google Cloud Platform. For a demo of installing and using the broker, see here
This product is a Cloud Foundry Service Broker. It adheres to v2.8 of the Service Broker API.
GCP is a cloud service provider. In addition to VMs and networking, many other useful services are available. The ones available through this Service Broker are:
Requires Go 1.8 and the associated buildpack.
Documentation for installing as a Pivotal Ops Manager tile is available here
Enable the following services in API Manager > Library.
0.0.0.0/0
as an authorized network.CREATE DATABASE servicebroker;
CREATE USER '<username>'@'%' IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON servicebroker.* TO '<username>'@'%' WITH GRANT OPTION;
Add these to the env section of manifest.yml
ROOT_SERVICE_ACCOUNT_JSON
(the string version of the credentials file created for the Owner level Service Account)SECURITY_USER_NAME
(a username to sign all service broker requests with - the same one used in cf create-service-broker)SECURITY_USER_PASSWORD
(a password to sign all service broker requests with - the same one used in cf create-service-broker)DB_HOST
(the host for the database to back the service broker)DB_USERNAME
(the database username for the service broker to use)DB_PASSWORD
(the database password for the service broker to use)See https://github.com/GoogleCloudPlatform/gcp-service-broker/blob/master/docs/customization.md for instructions on providing database name and port overrides, ssl certs, and custom service plans for Cloud SQL, Bigtable, and Spanner.
cf push gcp-service-broker
cf create-service-broker <service broker name> <username> <password> <service broker url>
cf enable-service-access google-pubsub
For more information, see the Cloud Foundry docs on managing Service Brokers
It is advisable, if you want to use CloudSQL, to increase the default timeout for provision and
bind operations to 90 seconds. CloudFoundry does not, at this point in time, support asynchronous
binding, and CloudSQL bind operations may exceed 60 seconds. To change this setting, set
broker_client_timeout_seconds
= 90 in your deployment manifest.
See https://github.com/GoogleCloudPlatform/gcp-service-broker/blob/master/docs/use.md for instructions on creating and binding to GCP Services
See the examples folder to understand how to use services once they are created and bound.
The cmd folder contains commands that can be run independent of the broker.
migrate
: migrates the database to the latest schemaProduction testing for the GCP Service Broker is administered via a private Concourse pipeline.
To run tests locally, use Ginkgo.
Integration tests require the ROOT_SERVICE_ACCOUNT_JSON
environment variable to be set.
Note: Integration tests create and destroy real project resources and therefore have associated costs to run
see https://github.com/GoogleCloudPlatform/gcp-service-broker/blob/master/CHANGELOG.md
For functional issues with the service broker or feature requests, please file a github issue here:
https://github.com/GoogleCloudPlatform/gcp-service-broker/issues
They will be prioritized and updated here:
https://github.com/GoogleCloudPlatform/gcp-service-broker/projects/1
For discussions and updates, please subscribe to this group:
https://groups.google.com/forum/#!forum/gcp-service-broker
see https://github.com/GoogleCloudPlatform/gcp-service-broker/blob/master/CONTRIBUTING
This is not an officially supported Google product.