Skip to content

Commit

Permalink
more azure tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 5, 2024
1 parent 0ac1cc2 commit 8705ce3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion terraform/clouds/azure/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ module "aks" {
kubernetes_version = var.kubernetes_version
cluster_name = var.cluster_name
resource_group_name = local.resource_group.name
prefix = var.cluster_name
os_disk_size_gb = 60
sku_tier = "Standard"
rbac_aad = true
vnet_subnet_id = azurerm_subnet.network.id
node_pools = [for pool in var.node_pools : merge(pool, {vnet_subnet_id = azurerm_subnet.network.id})]
node_pools = {for name, pool in var.node_pools : name => merge({vnet_subnet_id = azurerm_subnet.network.id}, pool)}
}
12 changes: 7 additions & 5 deletions terraform/clouds/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ variable "db_sku" {

variable "node_pools" {
type = list(any)
default = [
{
vm_size = "Standard_D2s_v3"
node_count = 1
default = {
plural = {
vm_size = "Standard_D2s_v3"
node_count = 3
min_count = 1
max_count = 20
}
]
}
}

0 comments on commit 8705ce3

Please sign in to comment.