shared-mysql-service-broker
Open Service Broker API for an existing shared MySQL
Install the service broker on Cloud Foundry
wget http://central.maven.org/maven2/am/ik/servicebroker/shared-smysql-service-broker/0.0.3/shared-smysql-service-broker-0.0.3.jar -O target/shared-smysql-service-broker-0.0.3.jar
cf create-user-provided-service shared-mysql -p '{"url": "mysql://username:[email protected]:3306/shared_mysql_service_broker"}'
cf push
cf create-service-broker shared-mysql admin password https://shared-mysql-service-broker.<apps domain>
cf enable-service-access shared-mysql
Create and bind a service instance
cf create-service shared-mysql shared demo-db
cf bind-service your-app demo-db
Install the service broekr on Kubernetes
./k8/install-service-catalog.sh
kubectl apply -f k8s/namespace.yml
cp k8s/secret.yml.old k8s/secret.yml
# Edit secret.yml for your environment
kubectl apply -f k8s/secret.yml
kubectl apply -f k8s/deployment.yml
kubectl apply -f k8s/cluster-service-broker.yml
Create and bind a service instance
kubectl apply -f k8s/sample/service-instance.yml
kubectl apply -f k8s/sample/service-binding.yml
kubectl apply -f k8s/sample/wordpress.yml