Use same ALB for same app deployed twice on 2 EKS clusters within the same AWS account. #4004
Description
Is your feature request related to a problem?
I have created 2 EKS clusters within the same AWS account. I would like to apply blue/green deployments to update one cluster after another. My goal is to have only 1 ALB which will route traffic to both clusters. Each cluster will have the same instance of the very same application. AWS LB controller will create 2 target groups and I would like to have those target groups with the same LB listener rule. The problem that I have today is when I create the second instance of my app in green cluster, I get the error :
DuplicateLoadBalancerName: A load balancer with the same name 'eks-mycluster' exists, but with different settings"}
From what I have found, the aws lb controller looks for the tag elbv2.k8s.aws/cluster
in the ALB. It is waiting for a value which is the name of the cluster. Problem is when you have 2 cluster, blue & green, and AWS lb controller on both cluster wait for different tags on the unique ALB, it is a problem.
Describe the solution you'd like
NA
Describe alternatives you've considered
NA