Code Monkey home page Code Monkey logo

helmi's Introduction

helmi

Open Service Broker API Implementation using helm

alt Logo

Start locally

# start minikube
minikube start

# init helm and install tiller (needed once)
helm init

# build helmi
go get -d github.com/monostream/helmi
cd ${GOPATH:-~/go}/src/github.com/monostream/helmi
go build

# run helmi
./helmi

Start on kubernetes

# create serviceaccount, clusterrolebinding, deployment, service and an optional secret for basic authorization
kubectl create -f docs/kubernetes/kube-helmi-rbac.yaml
kubectl create -f docs/kubernetes/kube-helmi-secret.yaml
kubectl create -f docs/kubernetes/kube-helmi.yaml

# curl to catalog with basic auth
curl --user {username}:{password} http://$(kubernetes ip):30000/v2/catalog

or

./docs/kubernetes/deploy.sh

# curl to catalog with basic auth
curl --user {username}:{password} http://$(kubernetes ip):30000/v2/catalog

Use in Cloud Foundry

Register Helmi Service Broker

cf create-service-broker helmi {username} {password} http://{IP}:5000

List and allow service access

cf service-access
cf enable-service-access {service}

List marketplace and create service instance

cf marketplace
cf create-service {service} {plan} {name}

Bind service to application

cf bind-service {app} {name}

Tests

run tests

go test ./pkg/* -v

Environment Variables

Helmi can use environment variables to define an external dns name for connection strings and a username/password for basic authentication. The service catalog and referenced Helm charts are also configured using env variables.

Name Example Value Description
USERNAME admin Basic auth username
PASSWORD secret Basic auth password
CATALOG_URL http://example.com/catalog.zip URL to a zipped catalog folder (can also be a local file path to a mounted volume).
REPOSITORY_URLS {"monostream":"http://helm-charts.monocloud.io",
"foo":"https:/user:[email protected]/path"}
JSON map of name-url pairs
DOMAIN cluster.example.com External DNS domain used to construct connection strings
INGRESS_DOMAIN cluster.example.com Domain used to construct ingress host strings
TILLER_NAMESPACE tiller K8s namespace of tiller server
HELM_NAMESPACE default K8s namespace in which Helm charts are deployed

In the k8s deployment, username and password are read from a secret, see kube-helmi-secret.yaml

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.