Load Balancer timeout annotation for GCE in service.yaml

4/7/2020

I am creating a new Service of Type Load Balancer in google cloud.

As we can specify the connection idle timeout for AWS or azure by providing the annotation in metadata in service.yaml.

What is the similar annotation for the google cloud?

service.kubernetes.io/aws-load-balancer-connection-idle-timeout: "500"

-- Rohit Aggarwal
google-cloud-platform
google-kubernetes-engine
kubernetes

1 Answer

4/8/2020

There is no possibility to configure the idle connection timeout for a service type of LoadBalancer in GKE.

Google Cloud external TCP/UDP Network Load Balancing (after this referred to as Network Load Balancing) is a regional, non-proxied load balancer.

Cloud.google.com: External TCP/UDP LoadBalancer

As said above, the network load balancer does not perform any type of modifications on the path as it's not a proxy but a forwarding rule. It does not provide any timeout facility.

If you are having issues with idle connections please check whole route that the traffic is taking to pinpoint where the issue could lie.

Please take a look on additional documentation:

-- Dawid Kruk
Source: StackOverflow