Skip to content
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

Support for load_balancer_profile #274

Closed
1 task done
mielmat opened this issue Nov 8, 2022 · 7 comments
Closed
1 task done

Support for load_balancer_profile #274

mielmat opened this issue Nov 8, 2022 · 7 comments

Comments

@mielmat
Copy link

mielmat commented Nov 8, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Description

Hello,
I would like to know if there is a possibility to extend this module and make load balancer configuration exposed to variable? That would help a lot with a bit more specific cases, like to use already existing public IP to avoid recreation it in case of cluster recreation. This is exposed in azurerm_kubernetes_cluster resource, but this module didn't expose that.

New or Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster

Potential Terraform Configuration

No response

References

No response

@zioproto
Copy link
Collaborator

zioproto commented Nov 9, 2022

Hello @mielmat

You are talking about specify the outbound IPs like described in this doc page ?

https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard#create-the-cluster-with-your-own-public-ip-or-prefixes

Could you make an example of the azurerm_kubernetes_cluster configuration that you are not able to achieve with the module ?

Thanks

@mielmat
Copy link
Author

mielmat commented Nov 9, 2022

Hello @zioproto,
that's exactly our case - and from what I see, it is not possible to achieve it with this module.

I'm not sure what kind of configuration should I provide, but what it is missing from my side is possibility to assign

...
load_balancer_sku     = var.load_balancer_sku
load_balancer_profile = var.load_balancer_profile
...

in this module.

@zioproto
Copy link
Collaborator

zioproto commented Nov 9, 2022

@mielmat can you propose a PR with this change ?

You need to add load_balancer_sku and load_balancer_profile here:
https://github.com/Azure/terraform-azurerm-aks/blob/master/main.tf#L27

Define the variables:
https://github.com/Azure/terraform-azurerm-aks/blob/master/variables.tf

Validate that load_balancer_profile is specified only if load_balancer_sku is set to standard

You can also add an example:
https://github.com/Azure/terraform-azurerm-aks/tree/master/examples

That will run an e2e test, where you create a public IP with Terraform:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/public_ip

and you pass it in the load_balancer_profile block the IP as outbound_ip_address_ids

If you can draft a PR I will be happy to review it. Thanks

@mielmat
Copy link
Author

mielmat commented Nov 10, 2022

Sure, I will try to raise PR for that.

@mazilu88
Copy link
Contributor

This is a much-needed feature. I have a situation when deploying "ingress-nginx" with dynamic IP or a static IP the load balancer gets assigned this IP for incoming traffic and the initially given IP address for aks is configured as the outgoing rule.

@mazilu88
Copy link
Contributor

Considering the PR is merged, when can we expect a release?

@zioproto
Copy link
Collaborator

hello @mazilu88
we don't have a documented release cadence. I will open an issue for that.

@lonegunmanb we can close this issue because the PR #277 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants