-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Feature] ability to configure target group names #2553
Comments
@guillaumecle, how do you intend to configure the target group names? The target groups are based on the backend service, and it can be shared across multiple ingresses. The target group name format is k8s--- and contain the aws tags to uniquely identify the resource. In addition you can configure specific tags per service which will be reflected in the target group tags. What is your use case for a custom target group name? |
Our target names currently look like I was thinking of using an annotation on the ingress. In case there are multiple ingresses using the same target group, it would reject the custom name (fallback on the default) or error out or pick one of the provided names (similar to the handling of My primary goal is to get more human readable/searchable target group name in cloud watch metrics, alb access logs and even just when browsing the list of target groups. |
@guillaumecle, we use tags to identify target groups/load balancer resources, so the name doesn't matter to the controller. However, controller needs to ensure the name is unique. We can support annotation to specify a target name prefix via annotation on the service/ingress, and use the prefix+hash to make the target group name unique. Would this proposal satisfy your requirement? /kind feature |
I think that would work for us. Thanks. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
+1. It would be nice to have this feature which will make the identification of ALB destinations much easier. Any ETA on when this can be made available? Atleast support to tag the target groups with custom labels? |
I also agree that naming the target groups could be a useful feature, for example when monitoring the traffic handled by the target we may want to be able to clearly bind it to the service name, not guessing it from the X first letter. |
same here, we have both 80 and 443 listening and would like to see at first glance what targetgroup handles what traffic. so there could be 2 annotations: this would translate to
is something in this direction possible? |
+1 |
7 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
This would help in cases were a single ALB has multiple target groups behind it. |
+1 |
1 similar comment
+1 |
+1 pleaseeeee |
+1 |
+1 |
+1 |
1 similar comment
+1 |
+1 |
had a crack at it if anyone wants to take a look at my PR ^ |
+1 |
2 similar comments
+1 |
+1 |
@thiborgesnvs I'm not a maintainer but we've been working on this PR. @frankh seems to have stopped responding and I haven't had the opportunity to look into @M00nF1sh 's requested changes. You can try your hand at it if you want |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Any update on this annotation for target group ??? |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
any updates on this ? |
This would be a handy feature, especially when using the target group created by the controller in other apps or controllers. |
/remove-lifecycle rotten |
+1'ing with some detail, as I'm not sure the PR that was opened to address this issue (which seems abandoned) actually resolves it. If I want a single ALB pointing at more than one target group, and I want to differentiate the CloudWatch metrics by path -- the only dimension CloudWatch gives us is the target group name. With that in mind, we only have the first 8 characters of the K8s Service name to work with, to differentiate those metrics. So I personally am not looking to "globally" change the prefix for all target groups for a given ALB -- I'm looking for each target group's name to be configurable. However, my use case (target group names by url path) is not generalizable, and I struggle to see how a solution within a single ALB's annotations could be. So instead I'm wondering -- could we take advantage of If every ingress in a given Just a thought! But for now, I'm just going to hope all the helm charts I'm using let me set a prefix for service name, so I can jam context into the first 8 characters 😭 |
#870 and #1899 added the ability to configure the load balancer names with the
alb.ingress.kubernetes.io/load-balancer-name
annotation.It would nice to also be able to configure the name of target groups. It could use the same annotation or a dedicated one.
The text was updated successfully, but these errors were encountered: