https://rancher.com/ logo
Title
a

ambitious-island-4760

06/24/2022, 8:55 AM
Howdy all. Using the rancher2 module,
rancher2_cluster
resource, we're setting up AKS clusters with the
aks_config_v2
. There we have the
node_pools
section with which we can successfully specify and rollout one node pool. My question is though, how can we setup multiple node pools? Cannot figure it out so far 😐
❤️ 1
Apparently this is as simple as defining more than 1 nodepool block
node_pools {
      availability_zones   = var.pool1.availability_zones
      count                = var.pool1.kubernetes_node_count
      enable_auto_scaling  = var.pool1.enable_auto_scaling
      name                 = var.pool1.node_pool_name
      mode                 = var.pool1.node_pool_mode
      orchestrator_version = var.pool1.kubernetes_version
      vm_size              = var.pool1.kubernetes_node_size
    }
    node_pools {
      availability_zones   = var.pool2.availability_zones
      count                = var.pool2.kubernetes_node_count
      enable_auto_scaling  = var.pool2.enable_auto_scaling
      name                 = var.pool2.node_pool_name
      mode                 = var.pool2.node_pool_mode
      orchestrator_version = var.pool2.kubernetes_version
      vm_size              = var.pool2.kubernetes_node_size
    }