项目作者: yqf3139

项目描述 :
A RethinkDB Helm Chart Service Broker for the Kubernetes Service Catalog
高级语言: Go
项目地址: git://github.com/yqf3139/rethinkdb-broker.git
创建时间: 2017-07-01T13:04:16Z
项目社区:https://github.com/yqf3139/rethinkdb-broker

开源协议:Apache License 2.0

下载


RethinkDB Broker

This is an implementation of a Service Broker that uses Helm to provision
instances of RethinkDB. This is a
proof-of-concept for the Kubernetes Service
Catalog
, and should not
be used in production. Thanks to the mariadb broker repo.

Prerequisites

  1. Kubernetes cluster
  2. Helm 2.x
  3. Service Catalog API - follow the walkthrough

Installing the Broker

The RethinkDB Service Broker can be installed using the Helm chart in this
repository.

  1. $ git clone https://github.com/yqf3139/rethinkdb-broker.git
  2. $ cd rethinkdb-broker
  3. $ helm install --name rethinkdb-broker --namespace rethinkdb-broker charts/rethinkdb-broker

To register the Broker with the Service Catalog, create the Broker object:

  1. $ kubectl --context service-catalog create -f examples/rethinkdb-broker.yaml

If the Broker was successfully registered, the rethinkdb ServiceClass will now
be available in the catalog:

  1. $ kubectl --context service-catalog get serviceclasses
  2. NAME KIND
  3. rethinkdb ServiceClass.v1alpha1.servicecatalog.k8s.io

Usage

Create the Instance object

  1. $ kubectl --context service-catalog create -f examples/rethinkdb-instance.yaml

This will result in the installation of a new RethinkDB chart:

  1. $ helm list
  2. NAME REVISION UPDATED STATUS CHART NAMESPACE
  3. i-3e0e9973-a072-49ba-8308-19568e7f4669 1 Sat May 13 17:28:35 2017 DEPLOYED rethinkdb-0.6.1 3e0e9973-a072-49ba-8308-19568e7f4669

Create a Binding to fetch credentials

  1. $ kubectl --context service-catalog create -f examples/rethinkdb-binding.yaml

A secret called rethinkdb-instance-credentials will be created containing the
connection details for this RethinkDB instance.

  1. $ kubectl get secret rethinkdb-instance-credentials -o yaml