This is an implementation of a Service Broker that uses Helm to provision instances of MariaDB. This is a proof-of-concept for the Kubernetes Service Catalog, and should not be used in production.
Learn more about the Kubernetes Service Catalog
NOTE: Works on Kubernetes v1.8.3 + Service Catalog v0.1.2.
Suppose you already have a MariaDB Server outside the Kubernetes cluster.
docker run -d --name=mariadb-server -p 3306:3306 -e MYSQL_ROOT_PASSWORD=passw0rd mariadb:10.1.16
docker run -d --name=mariadb-broker -p 8005:8005 -e MARIADB_HOST=10.10.25.250 -e MARIADB_PORT=3306 -e MARIADB_USER=root -e MARIADB_PASS=passw0rd siji/mariadb-broker:1.0.0
Or using Helm chart:
helm install --name=mariadb-broker charts/mariadb-broker
Please update the Broker URL in examples/mariadb-broker.yaml
.
kubectl apply -f examples/1.mariadb-broker.yaml
kubectl apply -f examples/2.jpress/2.1.jpress-instance.yaml
kubectl apply -f examples/2.jpress/2.2.jpress-binding.yaml
kubectl apply -f examples/2.jpress/2.3.jpress-blog-system.yaml
kubectl apply -f examples/3.wodpress/3.1.wordpress-instance.yaml
kubectl apply -f examples/3.wodpress/3.2.wordpress-binding.yaml
kubectl apply -f examples/3.wodpress/3.3.wordpress-blog-system.yaml