Skip to content

Commit eb83814

Browse files
committed
Updated terraform config
1 parent a2ccb83 commit eb83814

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

infra/azure/main.tf

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,24 @@ resource "azurerm_kubernetes_cluster" "ai_agent" {
6262
default_node_pool {
6363
name = "default"
6464
node_count = 1
65-
vm_size = "Standard_D4_v2" # Increased from D2 to D4 for more resources
66-
67-
# Enable auto-scaling for better resource management
68-
enable_auto_scaling = true
69-
min_count = 1
70-
max_count = 3
65+
vm_size = "Standard_D4_v2"
7166
}
7267

7368
identity {
7469
type = "SystemAssigned"
7570
}
7671
}
7772

73+
# Define a separate node pool with auto-scaling enabled
74+
resource "azurerm_kubernetes_cluster_node_pool" "ai_agent_pool" {
75+
name = "agentpool"
76+
kubernetes_cluster_id = azurerm_kubernetes_cluster.ai_agent.id
77+
vm_size = "Standard_D4_v2"
78+
enable_auto_scaling = true
79+
min_count = 1
80+
max_count = 3
81+
}
82+
7883
# For access to Key Vault from AKS
7984
resource "azurerm_key_vault_access_policy" "aks" {
8085
key_vault_id = azurerm_key_vault.ai_agent.id

0 commit comments

Comments
 (0)