azurerm_kubernetes_cluster_extension

Manages a Kubernetes Cluster Extension.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_kubernetes_cluster" "example" {
  name                = "example-aks"
  location            = "West Europe"
  resource_group_name = azurerm_resource_group.example.name
  dns_prefix          = "example-aks"

  default_node_pool {
    name       = "default"
    node_count = 1
    vm_size    = "Standard_DS2_v2"
  }

  identity {
    type = "SystemAssigned"
  }
}

resource "azurerm_kubernetes_cluster_extension" "example" {
  name           = "example-ext"
  cluster_id     = azurerm_kubernetes_cluster.example.id
  extension_type = "microsoft.flux"
}

Arguments Reference

The following arguments are supported:


A plan block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


An aks_assigned_identity block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Kubernetes Cluster Extension can be imported using the resource id for different cluster_resource_name, e.g.

terraform import azurerm_kubernetes_cluster_extension.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.KubernetesConfiguration/extensions/extension1