Improve targetgroup.elbv2 target discovery #2355
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
service/elbv2
Indicates issues or PRs that are related to elbv2-controller.
Is your feature request related to a problem?
When creating ALBs and thus
TargetGroup
resources I want to let theTargetGroup
refer to Kubernetes Pods. Since Kubernetes Pods typically are dynamically created, I do not want to manually specify Pod IPs in theTargetGroup
. Instead I would prefer something similar to how the aws-load-balancer controller does it using theTargetGroupBinding
feature, which allow updating an AWS targetgroup based on KubernetesEndpoints
/Service
resources.See e.g. https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/targetgroupbinding/targetgroupbinding/
A side note: Using the elbv2 controllers
TargetGroup
with an emptytargets
list and the aws-load-balancer controllersTargetGroupBinding
does not work as the former removes targets added by the latter.I see two architectural options here:
TargetGroup
when KubernetesEndpoints
change.TargetGroup
definition, i.e. conceptually include the aws-load-balancer controller feature in the e;bv2 controller.The former keeps the elbv2 controller simpler but adds the need for another controller. The latter makes the elbv2 controller more 'self-contained' as it includes the target resolution but it means that the elbv2 controller becomes dependent on a non-AWS specific
Endpoints
resource.The text was updated successfully, but these errors were encountered: