Kubernetes: How to change the default timeout of 60 sec of the AWS Load Balancer when exposing a service? Kubernetes: How to change the default timeout of 60 sec of the AWS Load Balancer when exposing a service? kubernetes kubernetes

Kubernetes: How to change the default timeout of 60 sec of the AWS Load Balancer when exposing a service?


It's possible to set connection idle timeout for ELB in the recent Kubernetes versions (1.4 or later?) using an annotation on the service. For example:

kubectl annotate service my-service service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout=1200

Also, you can change the load balancing protocol to HTTP with the below annotation.

service.beta.kubernetes.io/aws-load-balancer-backend-protocol

See the AWS provider source for more annotations for AWS ELB.