Local Proxy Server (Grpc + HTTP) for cross contexts
$ git clone https://github.com/lukluk/kube-local-proxy.git $GOPATH/src/github.com/lukluk/kube-local-proxy
$ cd $GOPATH/src/github.com/lukluk/kube-local-proxy
$ go get github.com/google/tcpproxy
$ go build -o bin/kube-local-proxy
$ cp bin/* /usr/local/bin/
- Create kube-local-proxy configuration file
$HOME/.klp.cfg
- Example kube-local-proxy conf :
# for HTTP service # host = context/app-name:port staging-web-api.localhost = STAGING-WEB/front-web-api:8080 cms.localhost = STAGING-CMS/cms-web-app:8080 # for GRPC service # host = context/app-name:port:package (package of proto file) localhost = STAGING-BACKEND/foo-service:8080:com.foo.package localhost = STAGING-BACKEND/bar-service:8080:com.bar.package
Done .
$ klp
kube-local-proxy ready!
80 for HTTP
443 for GRPC
"github.com/google/tcpproxy"