| 1 | variable "name" { |
| 2 | type = string |
| 3 | } |
| 4 | |
| 5 | variable "resource_group_name" { |
| 6 | type = string |
| 7 | } |
| 8 | |
| 9 | variable "location" { |
| 10 | type = string |
| 11 | } |
| 12 | |
| 13 | variable "dns_prefix" { |
| 14 | type = string |
| 15 | } |
| 16 | |
| 17 | variable "subnet_id" { |
| 18 | type = string |
| 19 | } |
| 20 | |
| 21 | variable "tags" { |
| 22 | type = map(string) |
| 23 | default = {} |
| 24 | } |
| 25 | |
| 26 | variable "node_count" { |
| 27 | type = number |
| 28 | description = "Initial system node count. Keep this modest for low-cost environments." |
| 29 | default = 2 |
| 30 | } |
| 31 | |
| 32 | variable "node_vm_size" { |
| 33 | type = string |
| 34 | description = "System node VM size." |
| 35 | default = "Standard_B2s" |
| 36 | } |
| 37 | |
| 38 | variable "oidc_issuer_enabled" { |
| 39 | type = bool |
| 40 | description = "Enable the OIDC issuer required by AKS Workload Identity." |
| 41 | default = true |
| 42 | } |
| 43 | |
| 44 | variable "workload_identity_enabled" { |
| 45 | type = bool |
| 46 | description = "Enable AKS Workload Identity." |
| 47 | default = true |
| 48 | } |
| 49 | |
| 50 | variable "key_vault_secrets_provider_enabled" { |
| 51 | type = bool |
| 52 | description = "Enable the AKS Secrets Store CSI provider for Azure Key Vault." |
| 53 | default = true |
| 54 | } |
| 55 | |
| 56 | variable "private_cluster_enabled" { |
| 57 | type = bool |
| 58 | description = "Whether the Kubernetes API server is private. Decide this with the operations network model." |
| 59 | default = false |
| 60 | } |
| 61 | |
| 62 | variable "local_account_disabled" { |
| 63 | type = bool |
| 64 | description = "Disable local Kubernetes administrator accounts after Entra RBAC is configured." |
| 65 | default = false |
| 66 | } |
| 67 | |
| 68 | variable "outbound_type" { |
| 69 | type = string |
| 70 | description = "AKS outbound mode. Stable egress designs may override this with userAssignedNATGateway or userDefinedRouting." |
| 71 | default = "loadBalancer" |
| 72 | } |