Comments (7)
I haven't looked at the code but i can tell you how to figure it out. Replace https://github.com/kubernetes/contrib/blob/master/service-loadbalancer/service_loadbalancer.go#L522 with:
if *dry {
kubeClient = client.NewOrDie(&client.Config{Host: "http://127.0.0.1:8001", Version: "v1"})
} else if *cluster {
if kubeClient, err = client.NewInCluster(); err != nil {
glog.Fatalf("Failed to create client: %v", err)
}
} else {
config, err := clientConfig.ClientConfig()
if err != nil {
glog.Fatalf("error connecting to the client: %v", err)
}
kubeClient, err = unversioned.New(config)
}
Create a tcp service like: https://github.com/kubernetes/contrib/tree/master/service-loadbalancer#tcp, run kubectl proxy on localhost pointed at your remote cluster, and observe the haproxy config the loadbalancer spits out when you run (on the same machine kubectl proxy is running on):
service_loadbalancer --dry --tcp-services=mysql:3306
If there's a bug, submit a pr :)
Also feel free to submit the snippet that allows *dry above as a pr if you have time.
from contrib.
Thanks ! I'll try to mock this out now, and pr a fix+ update Docs accordingly also.
from contrib.
I'm pretty sure --tcp-services is WIA btw, I just used mysql in my cluster.
from contrib.
WIA = "working in action"?
from contrib.
I mean wai
from contrib.
ah ok, "working as-is" :) . Will look deeper now while I test it.
from contrib.
not a bug , looked closer and the tcpServices was in a struct to begin with, got it confused with the string arg inside the struct .
from contrib.
Related Issues (20)
- Change host interface of VIP HOT 4
- Add to keepalived-vip Readme info about opportunity of VIP only with no backend service HOT 4
- kafka pod connection failed in kubernetes v1.10.3, but works in kubernetes v1.11.1 HOT 5
- my kafka broker failed to start. HOT 4
- Kafka not aware of node relocation HOT 2
- zookeeper.yaml file Format indentation error HOT 3
- SSL Passthrough without termination HOT 2
- Pending message for exposed externalApi HOT 5
- Create a SECURITY_CONTACTS file. HOT 18
- Add IPv6 Support for keepalived-vip HOT 1
- Support ARM and ARM64 images for echoserver (multi arch) HOT 1
- can I expose kafka service over ELB?
- kafka stateful java.net.NoRouteToHostException: No route to host
- service-loadbalancer 3rd party replacements page is 404
- ansible - vagrant - kubernetes error during vagrant up HOT 1
- Release latest version of Kubernetes-Zookeeper.
- Leader election lacks documentation about required permissions
- Discussion: Simplify leader election code
- Zombie processes in the exec-healthz command
- Intent to archive kubernetes/contrib HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contrib.