You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified all of my SDK modules are up-to-date (you can perform a bulk update with go get -u github.com/aws/aws-sdk-go-v2/...)
Describe the bug
We are using service.beta.kubernetes.io/aws-load-balancer-eip-allocations and service.beta.kubernetes.io/aws-load-balancer-subnets annotations to create a mapping between EIP and subnets.
As per docs , EIP allocations has this side note Length/order must match subnets
As a result, we end up mapping EIP to subnets which we don't intend (want) to
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
When we set these annotations service.beta.kubernetes.io/aws-load-balancer-eip-allocations: eip-w, eip-x, eip-y, eip-z service.beta.kubernetes.io/aws-load-balancer-subnets: subnet-random-ewewe, subnet-random-wewe, subnet-random-qrqr, subnet-random-rqrq
The mapping of the NLB created should
eip-w -> subnet-random-ewewe
eip-x -> subnet-random-wewe
eip-y -> subnet-random-qrqr,
eip-z -> subnet-random-rqrq
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
We are using
service.beta.kubernetes.io/aws-load-balancer-eip-allocations
andservice.beta.kubernetes.io/aws-load-balancer-subnets
annotations to create a mapping between EIP and subnets.As per docs , EIP allocations has this side note
Length/order must match subnets
However this order is not respected because we end up sorting the list of subnets.
https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/990ee2e98224e96ef8ec443e027dcb6ada3bb4f8/pkg/networking/subnet_resolver.go#L461
As a result, we end up mapping EIP to subnets which we don't intend (want) to
Regression Issue
Expected Behavior
When we set these annotations
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: eip-w, eip-x, eip-y, eip-z
service.beta.kubernetes.io/aws-load-balancer-subnets: subnet-random-ewewe, subnet-random-wewe, subnet-random-qrqr, subnet-random-rqrq
The mapping of the NLB created should
eip-w -> subnet-random-ewewe
eip-x -> subnet-random-wewe
eip-y -> subnet-random-qrqr,
eip-z -> subnet-random-rqrq
Current Behavior
The mapping which ends up being created is
eip-w -> subnet-random-ewewe
eip-x -> subnet-random-qrqr
eip-y -> subnet-random-rqrq
eip-z -> subnet-random-wewe
Reproduction Steps
Deployed k8s manifest example
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
N/A
Compiler and Version used
N/A
Operating System and version
N/A
The text was updated successfully, but these errors were encountered: