The main reason is that this is how we specced the feature in order to build cloud-based loadbalancers (e.g. Amazon ELB in particular). If we did as you suggest, which we probably will do (maybe as an option) in 1.4, we introduce a different problem. All cloud load-balancers target VMs, not containers, which means we have to handle somehow the case of different numbers of backends on each node.
On Sat, May 28, 2016 at 8:59 PM, Rodrigo Campos <[email protected]> wrote: > On Sat, May 28, 2016 at 08:38:41PM -0700, Qian Zhang wrote: >> Hi, >> >> In my K8s cluster, I have two nodes. And I created a deployment with only 1 >> replica and exposed it as a service, and then edited the service by >> changing its type to NodePort, and then I found the kube-proxy in *both* of >> the nodes listen on the node port, like: > > This is what it is supposed to do: > http://kubernetes.io/docs/user-guide/services/#type-nodeport > > So, not sure why you are surprised except that you didn't check the docs ;) > > > **My** understanding of this, but it is just mine, is that as the pods can be > running on any node, you can always have an "inflight" request or delays in > the > load balancer or what ever and deal with this case where a node receives a > request for a pod that is not there anymore. > > And as this is all handled with iptables now, it's pretty efficient. > > > > > Thanks a lot, > Rodrigo > > -- > You received this message because you are subscribed to the Google Groups > "Containers at Google" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-containers. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Containers at Google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-containers. For more options, visit https://groups.google.com/d/optout.
