Re: [kubernetes-users] Should apps bind to 0.0.0.0 or 127.0.0.1 or pod_ip?

2017-12-15 Thread dietrich . schultz
Makes sense. Thanks. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group,

Re: [kubernetes-users] Should apps bind to 0.0.0.0 or 127.0.0.1 or pod_ip?

2017-12-15 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Well, binding to 127 addresses means nobody else can access you. Binding to a specific IP is just not the "normal" thing to do in network programming, in my experience. Unless you know something specific, 0 is the best option. E.g. you might have more than one network interface, and 0 is the

Re: [kubernetes-users] Should apps bind to 0.0.0.0 or 127.0.0.1 or pod_ip?

2017-12-15 Thread dietrich . schultz
Thanks for your reply. Not port-forwarding from inside. Just from host (using minikube). I happened to write an app that binds to 127.0.0.1 and stumbled on this behavior (inconsistency?) Is there somewhere you could point me to that talks about 0 being the normal way to go? Just trying to

Re: [kubernetes-users] Should apps bind to 0.0.0.0 or 127.0.0.1 or pod_ip?

2017-12-15 Thread 'Tim Hockin' via Kubernetes user discussion and Q
What are you doing with port-forward inside your pod? Binding to 0 is the "normal" way to do things unless you have reason to dO otherwise. On Fri, Dec 15, 2017 at 4:42 PM, Dietrich Schultz wrote: > Just started exploring kubernetes, and ran into this. Haven't found

[kubernetes-users] Should apps bind to 0.0.0.0 or 127.0.0.1 or pod_ip?

2017-12-15 Thread Dietrich Schultz
Just started exploring kubernetes, and ran into this. Haven't found any docs or clear statements of best practice. The only thing I found was this note in the container.v1 spec describing the port field: Any port which is listening on the default "0.0.0.0" address inside a > container will be