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

Missing "aws-load-balancer-extra-security-groups" annotation #3679

Open
dcodix opened this issue May 7, 2024 · 7 comments
Open

Missing "aws-load-balancer-extra-security-groups" annotation #3679

dcodix opened this issue May 7, 2024 · 7 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@dcodix
Copy link

dcodix commented May 7, 2024

Is your feature request related to a problem?
It is. We were trying to migrate from the standard controller to the aws-load-balancer-controller and we are hitting a wall right now.
In the other controller there is this annotation "aws-load-balancer-extra-security-groups" that seems to have been dropped here (or I am failing to make it work).

We are using that annotation to attach to all our LBs a pre-created SG which would open the R53 healthchecks. We are doing it this way because we are using the aws managed prefix list, otherwise we could not list all the IPs needed for the r53 healthchecks to work.

With this controller we don't seem to be able to do so. We still want the "main" SG to be controller by the controller, but we need to add the extra SG managed outside of k8s.

Describe the solution you'd like
Just add the functionality for the annotation aws-load-balancer-extra-security-groups

Describe alternatives you've considered
If we cannot do this we might need either:

  1. Not use this controller and go back to the standard controller which supports the annotation.
  2. Write some mini controller that runs in paralel to this that will just discover and attach the SG to the LB given some annotation.
@andreybutenko
Copy link
Contributor

Hi @dcodix, thanks for the question! At this time, the AWS Load Balancer Controller does not support this type of annotation.

We do have two related annotations to specify the security groups to attach. However, these replace the controller-managed security group, rather than attaching additional security groups.

We are open to a contribution for this annotation :)

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label May 7, 2024
@omerap12
Copy link
Contributor

Perhaps I can take this :) @andreybutenko

@omerap12
Copy link
Contributor

/assign

@andreybutenko
Copy link
Contributor

@omerap12 Awesome, thanks for working on this :) Post here if you need anything!

@dcodix
Copy link
Author

dcodix commented May 15, 2024

Thanks to both @omerap12 and @andreybutenko ! I was also writing something, but I had to stop because of work,...
Just wanted to let you know tho, that once I had something written, and I was doing changes on the docs, I saw there is already an annotation aws-load-balancer-security-group-prefix-lists which might be exactly what I need!
I did not try to use that one, so I am not sure, but the reason I was attaching an extra SG is just because I had one SG pre-created with a prefix-list.

I will test this soon, and let you know if it solves my particular problem, but even if it works, it may still be a good idea to be able able to add the extra SG for other use cases ?

@dcodix
Copy link
Author

dcodix commented May 15, 2024

Sorry I clicked to create the PR by accident.

@omerap12
Copy link
Contributor

Hey @dcodix @andreybutenko ,
I think too that to be able to add an extra SG is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants