k8s-broker

command
v0.0.1-RC1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

README

Service Broker

This is an implementation of a service broker which runs in the Kubernetes cluster and deploys Kubernetes native resources only using Helm as the reifier.

You need to have a helm binary and tiller running in the cluster and need to point this broker to it.

Create a type for Helm chart


curl -X POST -d @- localhost:8001/services <<__EOF__
{
  "name": "nginx",
  "id": "4179E70A-4641-49D5-B395-A8ACB1419BCA",
  "description": "Helm chart for running nginx",
  "plans": [
    {
      "name": "nginx",
      "id": "696AD474-123F-474F-8FDB-C724C058CF03",
      "metadata": {
        "instanceType": "gs://helm-sb-test/nginx-0.1.0.tgz"
      }
    }
  ],
  "requires": [],
  "tags": [],
  "bindable":false
}
__EOF__

Create an instance of it


curl -X PUT -d @- localhost:8002/v2/service_instances/E7075981-6A2A-4FFC-B91C-E056F6CC9671 <<__EOF__
{
  "service_id": "4179E70A-4641-49D5-B395-A8ACB1419BCA",
  "plan_id":"696AD474-123F-474F-8FDB-C724C058CF03"
}
__EOF__

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL