All checks were successful
AI Code Review / ai-review (pull_request) Successful in 59s
57 lines
1.4 KiB
HCL
57 lines
1.4 KiB
HCL
# ─── Cluster ─────────────────────────────────────────────────────────
|
|
|
|
variable "prefix" {
|
|
description = "Prefix for resource names"
|
|
type = string
|
|
}
|
|
|
|
variable "location" {
|
|
description = "Azure region (e.g., norwayeast, westeurope, northeurope)"
|
|
type = string
|
|
}
|
|
|
|
variable "resource_group_name" {
|
|
description = "Name of the Azure Resource Group to create"
|
|
type = string
|
|
}
|
|
|
|
variable "vnet_address_space" {
|
|
description = "Address space for the virtual network"
|
|
type = string
|
|
default = "10.100.0.0/16"
|
|
}
|
|
|
|
variable "aks_subnet_cidr" {
|
|
description = "CIDR block for the AKS node subnet"
|
|
type = string
|
|
default = "10.100.0.0/22"
|
|
}
|
|
|
|
variable "aks_node_vm_size" {
|
|
description = "VM size for AKS worker nodes (e.g., Standard_B2s, Standard_D4s_v3)"
|
|
type = string
|
|
}
|
|
|
|
variable "aks_node_count" {
|
|
description = "Number of AKS worker nodes"
|
|
type = number
|
|
}
|
|
|
|
variable "aks_kubernetes_version" {
|
|
description = "Kubernetes version for AKS (null = latest stable)"
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "enable_delete_lock" {
|
|
description = "Protect the resource group from accidental deletion"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags applied to all resources"
|
|
type = map(string)
|
|
default = {}
|
|
}
|