Giter VIP home page Giter VIP logo

redis-broker's Introduction

Redis Broker

This is an implementation of a Service Broker that uses Helm to provision instances of Redis. 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 Redis Service Broker can be installed using the Helm chart in this repository.

$ git clone https://github.com/yqf3139/redis-broker.git
$ cd redis-broker
$ helm install --name redis-broker --namespace redis-broker charts/redis-broker

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

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

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

$ kubectl --context service-catalog get serviceclasses
NAME      KIND
redis   ServiceClass.v1alpha1.servicecatalog.k8s.io

Usage

Create the Instance object

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

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

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

Create a Binding to fetch credentials

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

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

$ kubectl get secret redis-instance-credentials -o yaml

redis-broker's People

Contributors

yqf3139 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.