File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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
7984resource "azurerm_key_vault_access_policy" "aks" {
8085 key_vault_id = azurerm_key_vault. ai_agent . id
You can’t perform that action at this time.
0 commit comments