Skip to content

azurerm_kubernetes_cluster: remove unused docker_bridge_cidr variable #18119

@zioproto

Description

@zioproto

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, 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

Terraform Version

1.2.8

AzureRM Provider Version

3.18.0

Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster

Terraform Configuration Files

resource "azurerm_kubernetes_cluster" "main" {
[..CUT..]
network_profile {
    network_plugin     = var.network_plugin
    dns_service_ip     = var.net_profile_dns_service_ip
    docker_bridge_cidr = var.net_profile_docker_bridge_cidr
    network_policy     = var.network_policy
    outbound_type      = var.net_profile_outbound_type
    pod_cidr           = var.net_profile_pod_cidr
    service_cidr       = var.net_profile_service_cidr
  }
[..CUT..]
}

This is a cleanup request

Since 2020 the default AKS runtime is containerd and not Docker
https://github.com/Azure/AKS/blob/master/CHANGELOG.md#release-2020-06-29

It is not possible anymore to create an AKS cluster with Docker runtime.
https://docs.microsoft.com/en-us/azure/aks/cluster-configuration#container-runtime-configuration
Docker is no longer supported as of September 2022

However users of the resource azurerm_kubernetes_cluster are forced to set a value for docker_bridge_cidr because otherwise they cannot set service_cidr:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#docker_bridge_cidr

178714319-ab977111-4f1b-4249-b282-731a0a081401

This is super confusing to have this technical debt for folks that start using this resource in 2022, and they have no idea why a Docker cidr is needed when Docker is not even used.

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions