GKE K8s LoadBalancer Service Target Group

2/26/2018

I have created a type=LoadBalancer Service for my nginx-ingress-controller. It is working just fine, but I just noticed that my LoadBalancer service created a target group for all the nodes in my cluster and, of course these other nodes would fail healthcheck.

Questions:

  1. Is that an expected behavior ?
  2. If not; How can I configure it to be targeting only a specific node-pool/instance-group ?

P.S.: I have tried adding the ServiceNodeExclusion annotation to the other nodes. And also without, for like 10mins or so, all the nodes are healthy then the other nodes turn unhealthy.


Other nodes -> means the nodes which does not have an nginx-ingress-controller

-- rrw
google-kubernetes-engine
kubernetes
load-balancing

0 Answers