All Modules
AzureCompute

AKS

Azure Kubernetes Service with managed node pools and OIDC integration

Usage

module "aks" {
  source = "github.com/fencepencil/fencepencil-azure-modules//aks"

  name_prefix = "<name_prefix>"
  environment = "<environment>"
  location = "<location>"
  resource_group_name = "<resource_group_name>"
  subnet_id = "<subnet_id>"
  log_analytics_workspace_id = "<log_analytics_workspace_id>"

  tags = var.tags
}

Inputs (11)

NameTypeDescriptionDefaultRequired
name_prefixstringPrefix for resource namingyes
environmentstringDeployment environmentyes
locationstringAzure regionyes
resource_group_namestringResource group to deploy intoyes
kubernetes_versionstringKubernetes versionnullno
node_countnumberInitial number of nodes2no
vm_sizestringVM size for the node poolStandard_D2s_v3no
subnet_idstringSubnet ID for the node poolyes
auto_scaling_enabledboolEnable cluster autoscalerfalseno
log_analytics_workspace_idstringLog Analytics workspace IDyes
tagsmap(string)Tags to apply to all resources{}no

Outputs (5)

NameDescription
cluster_idID of the AKS cluster
cluster_nameName of the AKS cluster
hostKubernetes API server endpoint
kubelet_identity_object_idKubelet managed identity object ID
node_resource_groupAuto-created node resource group

More Azure Modules

Browse our full library of Azure infrastructure modules.

View all Azure modules