kubernetes-external-proxy

command module
v0.0.0-...-aaa00d2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2015 License: MIT Imports: 17 Imported by: 0

README

Kubernetes External Proxy

This will provide an external service proxy for Kubernetes Pods discovered via label queries.

Currently a work in progress.

Installation

go install github.com/kelseyhightower/kubernetes-external-proxy

Usage

Configure the server:

export KUBERNETES_API_SERVER="192.168.12.20:8080"

Start the server:

kubernetes-external-proxy
Add a service

Create an add service RPC request:

{
    "method": "ServiceManager.Add",
    "params":[{
        "id": "hello",
        "selector": {
            "environment": "production"
        },
        "containerPort": "80",
        "protocol": "tcp",
        "port": "5000"
    }],
    "id": 0
}
curl -i -d @add-hello-service.json http://127.0.0.1:8000
{"id":0,"result":"0.0.0.0:5000","error":null}
Delete a service

Create a delete service RPC request:

{
    "method": "ServiceManager.Del",
    "params":["hello"],
    "id": 0
}
curl -i -d @delete-hello-service.json http://127.0.0.1:8000
{"id":0,"result":true,"error":null}

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