https://github.com/making/shared-mysql-service-broker
Open Service Broker API for an existing shared MySQL
https://github.com/making/shared-mysql-service-broker
Last synced: 6 months ago
JSON representation
Open Service Broker API for an existing shared MySQL
- Host: GitHub
- URL: https://github.com/making/shared-mysql-service-broker
- Owner: making
- License: apache-2.0
- Created: 2017-10-26T16:10:47.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2020-09-07T10:30:57.000Z (over 5 years ago)
- Last Synced: 2025-04-06T07:37:32.704Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 94.7 KB
- Stars: 7
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:password@mysql.example.com:3306/shared_mysql_service_broker"}'
cf push
```
```
cf create-service-broker shared-mysql admin password https://shared-mysql-service-broker.
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
```