<p>I am creating a new Service of Type Load Balancer in google cloud.</p>

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

<p>What is the similar annotation for the google cloud?</p>

<p><strong>service.kubernetes.io/aws-load-balancer-connection-idle-timeout: "500"</strong></p>

Rohit Aggarwal
<p><strong>There is no possibility to configure the <code>idle connection timeout</code> for a service type of <code>LoadBalancer</code> in <code>GKE</code>.</strong></p>

<blockquote>
  <p>Google Cloud external TCP/UDP Network Load Balancing (after this referred to as Network Load Balancing) is a regional, non-proxied load balancer.</p>
  
  <p> <em><a href="https://cloud.google.com/load-balancing/docs/network" rel="nofollow noreferrer">Cloud.google.com: External TCP/UDP LoadBalancer</a></em>  </p>
</blockquote>

<p>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. <strong>It does not provide any timeout facility.</strong>  </p>

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

<p>Please take a look on additional documentation: </p>

<ul>
<li><a href="https://cloud.google.com/load-balancing/docs/network" rel="nofollow noreferrer">Cloud.google.com: External TCP/UDP LoadBalancer</a></li>
<li><a href="https://cloud.google.com/kubernetes-engine/docs/concepts/service" rel="nofollow noreferrer">Cloud.google.com: Kubernetes engine: Services</a></li>
<li><a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">Kubernetes.io: Services</a></li>
</ul>
