Skip to content

jsoliveir/terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure Modules

Terraform

Example

module "kubernetes" {
  for_each            = local.config.azure.kubernetes
  subnet_id           = module.network[each.value.network].subnets[each.value.subnet].id
  source              = "git::https://github.com/jsoliveir/infrastructure//terraform/azure/Kubernetes/v1"
  location            = module.network[each.value.network].location
  resource_group_name = module.resource_group.name
  tags                = module.resource_group.tags
  kubernetes_version  = each.value.version
  name                = each.key
  storage = {
    blob_driver_enabled = each.value.storageDrivers.blob
    disk_driver_enabled = each.value.storageDrivers.disk
    file_driver_enabled = each.value.storageDrivers.file
    snapshot_controller_enabled = false
  }
  node_pools = {
    for name, pool in each.value.nodePools : name => {
      vm_size   = pool.vmSize
      disk_size = pool.diskSize
      taints    = pool.taints
      max_nodes = pool.nodes
      mode      = pool.mode
    }
  }
}

Releases

No releases published

Packages

No packages published