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

AWS Subnet Migration Documentation #3985

Open
mikegrima opened this issue Dec 16, 2024 · 1 comment
Open

AWS Subnet Migration Documentation #3985

mikegrima opened this issue Dec 16, 2024 · 1 comment

Comments

@mikegrima
Copy link

mikegrima commented Dec 16, 2024

Is your feature request related to a problem?
Hello! I am looking for some documentation to add clarity around how the controller handles AWS subnet migrations.

For example, let's say:

  1. I have a subnets named foo-az-1 and foo-az-2.
  2. Both subnets are tagged kubernetes.io/role/elb = 1
  3. I want to migrate the ALB to new subnets named: bar-az-1, and bar-az-2.

Based on the documentation here: https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/deploy/subnet_discovery/, it would seem that I just tag bar-az-1 and bar-az-2 with kubernetes.io/role/elb set to 1. However, it's not clear if that would work or what the migration would look like. For example, the documentation says:

During auto-discovery, the controller considers subnets with at least eight available IP addresses. In the case of multiple qualified tagged subnets in an Availability Zone, the controller chooses the first one in lexicographical order by the subnet IDs.

Is the solution to, at first, ensure that foo-az-1, foo-az-2, bar-az-1, and bar-az-2 are all tagged with kubernetes.io/role/elb set to 1? Then once that is completed, untag foo-az-1 and foo-az-2?

It's not clear what the controller would do in this case. I'm also concerned about downtime, if there would be any.

Describe the solution you'd like
Some clarity on the how subnet migrations take place.

Describe alternatives you've considered
See above.

@aravindsagar
Copy link

Hi, thanks for bringing this up. The proposed solution should work, as the controller would use the modify subnets API under the hood to change the subnets. Alternately, you can also use the subnet annotation instead of subnet discovery to explicitly specify the subnets to be used by the load balancer.

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