Hello!
I am using Traefik ingress controller on Kubernetes EKS (AWS), and it creates a Service type Loadbalancer. I wanted to increase the Connection idle timeout
set on the load balancer.
How to change Connection idle timeout
for the AWS load balancer from Traefik from the helm charts values, or from annotations, or potentially IngressRoute CRs?
The default is 60 seconds, and we need at least 120 seconds.
Traefik helm chart we are using: GitHub - traefik/traefik-helm-chart: Traefik Proxy Helm Chart
I could
I noticed there is this settings allowing to add annotations in the helm chart:
# defaultCertificate:
# secretName: tls-cert
tlsStore: {}
service:
enabled: true
## -- Single service is using `MixedProtocolLBService` feature gate.
## -- When set to false, it will create two Service, one for TCP and one for UDP.
single: true
type: LoadBalancer
# -- Additional annotations applied to both TCP and UDP services (e.g. for cloud provider specific config)
annotations: {}
# -- Additional annotations for TCP service only
annotationsTCP: {}
# -- Additional annotations for UDP service only
annotationsUDP: {}
# -- Additional service labels (e.g. for filtering Service by custom labels)
labels: {}
# -- Additional entries here will be added to the service spec.
# -- Cannot contain type, selector or ports entries.
spec: {}
but from this documentation: Annotations - AWS Load Balancer Controller I don't see a way of editing it there.
I am basically looking for a way to configure any Traffic configuration on the LB.
Connection idle timeout (the one I want to tweak)
Packet handling - Desync mitigation mode (Defensive, etc)
Enable connection draining
Timeout (draining interval)
...
(From https://eu-central-1.console.aws.amazon.com/ec2/home?region=eu-central-1#LoadBalancerEditAttributes:loadBalancerArn= )
I guess if there is a way to change any of this from the service, it should be easy to find how to change Connection idle timeout
I found some examples here:
Adding the following annotation in service.annotations
(values.yaml) is the key
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '60'
system
Closed
April 29, 2024, 1:48pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.