muchlearning / kubernetes-haproxy

auto-updating configuration for HAProxy proxying Kubernetes pods
27 stars 2 forks source link

Accessing etcd from contrainer #1

Open kskalski opened 7 years ago

kskalski commented 7 years ago

Any idea how to connect to etcd from within kubernetes container? http://127.0.0.1:2379 works only on the host and unfortunately the IP advertised by etcd pod isn't accessible either. It's possible that etcd by default restricts the sources that can connect to it. Any hint?

uhoreg commented 7 years ago

You'll probably have to figure out how to connect to the etcd pod's pod IP. My setup just runs etcd on the host, so I can't really help much here, unfortunately.