-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
annotation "aws-load-balancer-subnets" not taken into account #1821
Comments
@leandro-loos, did you specify the subnets annotation after creating the service, or modify the annotation? Do you see any errors in the controller logs? The issue could be on the AWS side where it is not allowing modifications to the NLB subnets after creation. You can check if the AWS has a "temporary limitation" when you try to edit the NLB subnets from the AWS console |
@kishorj I have exactly the same problem that @leandro-loos have
Please fix this. |
@leandro-loos, the lb you are trying to create is reconciled by the AWS in-tree controller since the The fix for the in-tree controller was introduced by the PR kubernetes/kubernetes#97431 and will be available in k8s 1.21 release. In case of EKS, we've backported the fix, so the support is available from EKS 1.19 onwards. I will cherry-pick the changes to k8s 1.19 and 1.20 so kops users also get the fix. As of now, this controller supports NLB IP targets only, the annotatoni |
@leandro-loos, I'm closing the issue. If you have further concerns, feel free to reopen or create a new issue. |
According to the documentation (https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/docs/guide/service/annotations.md):
I have a
v1.18.15
and av1.16.15
kubernetes clusters created withkops
on top of EC2 instantes.Deploying the following service as part of a nginx-controller-deployment:
Where
subnet-XXXX, subnet-YYYY, subnet-ZZZZ
are valid subnets on the VPC from different AZs (a, b, and c).The
aws-load-balancer-subnets
annotation is being ignored and the NLB is created on the auto discovered subnets.(note that the whole lot of combinations like using
, etc were tested)
"
,'
,The text was updated successfully, but these errors were encountered: