Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALB is only registered to 2 subnets after upgrading to v2.7.2 #3698

Open
jmtsi opened this issue May 15, 2024 · 1 comment
Open

ALB is only registered to 2 subnets after upgrading to v2.7.2 #3698

jmtsi opened this issue May 15, 2024 · 1 comment

Comments

@jmtsi
Copy link

jmtsi commented May 15, 2024

Describe the bug
After upgrading the ALBC to v2.7.2, only 2 of our 3 correctly-annotated subnets are registered to ALB, which causes some of the ip-targets to have status Unused with an error: Target is in an Availability Zone that is not enabled for the load balancer

Steps to reproduce
Create an ingress without specifying annotation alb.ingress.kubernetes.io/subnets. A new ALB gets created, but only having 2 of the 3 subnets.

Expected outcome
The load balancer gets created with all 3 subnets that have the label kubernetes.io/role/internal-elb=1

Environment
Kubernetes: 1.29.1
ALBC: v2.7.2
EKS platform version: eks.6

Additional Context:
I tried to find anything subnet-discovery related from ALBC debug logs, but found nothing.

As a workaround, I added the alb.ingress.kubernetes.io/subnets annotation with a list of all 3 subnets, which fixed the issue for now.

Full list of annotations used:
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/healthcheck-path: /ping
alb.ingress.kubernetes.io/ip-address-type: dualstack
alb.ingress.kubernetes.io/listen-ports: [{"HTTP": 80}]
alb.ingress.kubernetes.io/load-balancer-attributes: routing.http2.enabled=false
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-group-attributes: load_balancing.algorithm.type=round_robin
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb

@aravindsagar
Copy link

Hi! Thanks for reporting the issue. Can you please let us know which version were you using prior to 2.7.2? Controller logs would also be helpful. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants