GCP Load Balance Being Auto Created

127 views
Skip to first unread message

bill sayegh

unread,
Mar 31, 2020, 8:02:04 AM3/31/20
to gce-discussion
Hi All

I have a Kubernetes cluster setup with a layer 7 load-balance that is load balancing over two node pools.

Randomly I keep having the TCP load balancer automatically being created by GCP and I start incurring the network load balancer charges. .

If I delete the TCP load balancer a day later the load balancer is recreated  automatically and the billing starts again.


I don't need the TCP load balancer and only need HTTP load balancing.

Can anyone explain why GCP is automatically creating the load balancer after I delete them.

Thank you 

Ilia Borovoi

unread,
Mar 31, 2020, 9:04:24 AM3/31/20
to gce-discussion
This is expected when you have a GKE ingress created. Delete the ingress that is associated with this TCP LB and this will stop the automatic re-creation. This is explained this this HTTP LB article , but it's the same for TCP [https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer#remarks].

bill sayegh

unread,
Apr 1, 2020, 4:14:49 AM4/1/20
to gce-discussion
Hi llia

Thanks for the reply

If I delete the TCP load balancer service under the kube service and then I got an error in the ingress service.

The issue is if I delete the TCP load balancer under the network load balancer configuration it automatically re appears.

I cant delete the ingress service as its used for the HTTP load balancer

Sorry if I sound basic but I am very new to GCP and Kube service
Reply all
Reply to author
Forward
0 new messages