terraform-provider-azurerm icon indicating copy to clipboard operation
terraform-provider-azurerm copied to clipboard

Support for defaultIngressControllerType in azurerm_kubernetes_cluster web_app_routing block

Open edmundkwok opened this issue 4 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

I understand that https://github.com/hashicorp/terraform-provider-azurerm/issues/27109 was closed as unplanned as defaultIngressControllerType was a preview functionality at that point of time.

With the ManagedClusterIngressProfileNginx configuration being GA in 2025-02-01, and https://github.com/hashicorp/terraform-provider-azurerm/pull/29761 merged in, could the request for defaultIngressControllerType be reconsidered for support please?

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

azurerm_kubernetes_cluster

Potential Terraform Configuration

resource "azurerm_kubernetes_cluster" "example" {
  name                = "example-aks1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  dns_prefix          = "exampleaks1"

  ...

  web_app_routing {
    ...
    default_ingress_controller_type = "none|internal|external"
  }
}

References

  • https://learn.microsoft.com/en-us/azure/aks/app-routing-nginx-configuration?tabs=bicep#control-the-default-nginx-ingress-controller-configuration
  • https://learn.microsoft.com/en-us/rest/api/aks/managed-clusters/create-or-update?view=rest-aks-2025-02-01&tabs=HTTP#managedclusteringressprofilenginx
  • https://github.com/hashicorp/terraform-provider-azurerm/issues/27109
  • https://github.com/hashicorp/terraform-provider-azurerm/pull/29761

edmundkwok avatar Jun 20 '25 01:06 edmundkwok