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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name_prefix | string | Prefix for resource naming | — | yes |
environment | string | Deployment environment | — | yes |
location | string | Azure region | — | yes |
resource_group_name | string | Resource group to deploy into | — | yes |
kubernetes_version | string | Kubernetes version | null | no |
node_count | number | Initial number of nodes | 2 | no |
vm_size | string | VM size for the node pool | Standard_D2s_v3 | no |
subnet_id | string | Subnet ID for the node pool | — | yes |
auto_scaling_enabled | bool | Enable cluster autoscaler | false | no |
log_analytics_workspace_id | string | Log Analytics workspace ID | — | yes |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (5)
| Name | Description |
|---|---|
cluster_id | ID of the AKS cluster |
cluster_name | Name of the AKS cluster |
host | Kubernetes API server endpoint |
kubelet_identity_object_id | Kubelet managed identity object ID |
node_resource_group | Auto-created node resource group |