-
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
Extend TargetGroupBinding to allow lookup of target group by name rather than just arn #3586
Comments
@gfcroft from this stackoverflow question, it seems possible: https://stackoverflow.com/questions/69997106/terraform-use-output-variable-as-an-input-in-another-resource If so, i think it's a better way to address this issue if you create both resource within terraform. |
Hi @M00nF1sh, thanks for getting in touch. In our use case, we create AWS resources like load balancers and target groups by using terraform, and we create kubernetes resources (e.g. deployments, services, TargetGroupBindings) by writing helm charts, then deploying these charts using the helm cli tool helm upgrade -i example-chart . -f example-chart-values.yaml We don't want to use terraform to deploy the helm chart (so just handling this all in terraform to bypass the issue is out) nor do we want to somehow-or-other output values from terraform, to then load them into a generated values file which we feed into helm deployments (which would be unusual and would compromise the immutability of the deployment artefacts involved). We also don't want to have the terraform code that creates the target groups in aws also go and directly create the TargetGroupBinding resource in the kubernetes cluster - there are a few reasons why but in short it would cause a lot of friction as the app charts which should own this kubernetes resouce (as it exposes their services) don't. I would also wonder if there could be issues if the target group binding was created some time before the k8s service (that it is supposed to be fronting) exists. |
If I understood correctly, there is a pull request open for quite a while to solve a very same issue #2655 Any chance to have a look and address it? |
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 |
/remove-lifecycle rotten |
Is your feature request related to a problem?
I work on a project where we desire to:
Currently it is required for TargetGroupBindings (when the controller doesn't manage the load balancer itself) to map onto the required target group by providing the target group arn.
Because we won't necessarily know what the relevant target group arn will be ahead of time when we create our app helm charts, this makes it difficult to use TargetGroupBindings for our use case
Describe the solution you'd like
A description of what you want to happen.
TargetGroupBinding is extended with the ability to lookup the relevant target group by name - target group names are unique per region per account - https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-target-group.html
Describe alternatives you've considered
A description of any alternative solutions or features you've considered
We have considered other solutions, given our constraints around terraform management of target groups and load balancers, such as making our own custom controller, or generating the required helm values in our helm deploy pipeline, but both of these would be poorer solutions than simply extending this controller
The text was updated successfully, but these errors were encountered: