Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/aks/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ module "cluster" {

kubernetes_version = var.kubernetes_version
orchestrator_version = var.kubernetes_version
sku_tier = var.sku_tier

resource_group_name = data.azurerm_resource_group.this.name
prefix = var.cluster_name
network_plugin = "azure"
network_policy = var.network_policy
vnet_subnet_id = var.vnet_subnet_id
agents_pool_name = var.agents_pool_name
agents_labels = var.agents_labels
agents_count = var.agents_count
agents_size = var.agents_size
agents_max_pods = var.agents_max_pods
Expand Down
19 changes: 19 additions & 0 deletions modules/aks/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ variable "vnet_subnet_id" {
type = string
}


variable "agents_pool_name" {
description = "The default Azure AKS agentpool (nodepool) name."
type = string
default = "nodepool"
}

variable "agents_count" {
description = "The number of Agents that should exist in the Agent Pool. Please set `agents_count` `null` while `enable_auto_scaling` is `true` to avoid possible `agents_count` changes."
type = number
Expand All @@ -37,6 +44,12 @@ variable "agents_size" {
default = "Standard_D4s_v3"
}

variable "agents_labels" {
description = "A map of Kubernetes labels which should be applied to nodes in the Default Node Pool. Changing this forces a new resource to be created."
type = map(string)
default = {}
}

variable "os_disk_size_gb" {
description = "Disk size of nodes in GBs."
type = number
Expand Down Expand Up @@ -87,3 +100,9 @@ variable "storage_account_replication_type" {
default = "GRS"
type = string
}

variable "sku_tier" {
description = "The SKU Tier that should be used for this Kubernetes Cluster. Possible values are Free and Paid"
default = "Free"
type = string
}