You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into a way of controlling request affinity in Kubernetes and followed the instructions in the docs. Our Kubernetes clusters are running in AWS, specifically EKS. I noticed that running in LoadBalancer mode creates an AWS load balancer of the ELB type, which is deprecated per AWS and will no longer be able to run after August 2022. I looked through help and configuration options and didn't find an apparent way to force HAProxy to use NLBs or ALBs instead.
As a workaround, it is possible to use node ports, but that doesn't work for general case in microservice environment (requires coordination between teams and port assignments).
Expected behavior
NLB or ALB load balancer should be created when running in the LoadBalancer mode.
Steps to reproduce the problem
Create a VPC with EKS cluster
Follow the demo instructions
Observe: the type of the load balancer created in AWS is ELB.
Environment information
HAProxy Ingress version: v0.13.6
The text was updated successfully, but these errors were encountered:
I ended up adding annotations to the ingress service:
# haproxy-ingress-values.yamlcontroller:
hostNetwork: true...service:
type: LoadBalancerannotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb# This is irrelevant, but might be useful too.service.beta.kubernetes.io/aws-load-balancer-internal: "true"
Relevant documentation is available in sigs. Admittedly, this can be considered common knowledge and hence lack of my expertise trying to setting up HAProxy ingress. I think a noob like me could benefit from a note in getting started to tripping over it.
@dbarvitsky According to the article this is only relevant for Class Load Balancer not running inside a VPC. Notice also the checkbox at the top of the page.
Description of the problem
I was looking into a way of controlling request affinity in Kubernetes and followed the instructions in the docs. Our Kubernetes clusters are running in AWS, specifically EKS. I noticed that running in LoadBalancer mode creates an AWS load balancer of the ELB type, which is deprecated per AWS and will no longer be able to run after August 2022. I looked through help and configuration options and didn't find an apparent way to force HAProxy to use NLBs or ALBs instead.
As a workaround, it is possible to use node ports, but that doesn't work for general case in microservice environment (requires coordination between teams and port assignments).
Expected behavior
NLB or ALB load balancer should be created when running in the LoadBalancer mode.
Steps to reproduce the problem
Environment information
HAProxy Ingress version:
v0.13.6
The text was updated successfully, but these errors were encountered: