Difference between revisions of "Vm size"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} {{tf aks}}")
 
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
 
+
<pre>
 +
locals {
 +
  nodes = {
 +
    for i in range(3) : "worker${i}" => {
 +
      name                  = substr("worker${i}${random_id.prefix.hex}", 0, 8)
 +
      vm_size              = "Standard_D2s_v3"
 +
      node_count            = 1
 +
      vnet_subnet_id        = azurerm_subnet.test.id
 +
      create_before_destroy = i % 2 == 0
 +
    }
 +
  }
 +
}
 +
</pre>
  
  
  
 
{{tf aks}}
 
{{tf aks}}

Revision as of 16:53, 15 July 2024

locals {
  nodes = {
    for i in range(3) : "worker${i}" => {
      name                  = substr("worker${i}${random_id.prefix.hex}", 0, 8)
      vm_size               = "Standard_D2s_v3"
      node_count            = 1
      vnet_subnet_id        = azurerm_subnet.test.id
      create_before_destroy = i % 2 == 0
    }
  }
}


Terraform AKS, azurerm_resource_group, azurerm_kubernetes_cluster, azurerm_role_assignment, azurerm_virtual_network, azurerm_dns_zone

Advertising: