mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-30 17:58:32 +00:00
Add zone label
This commit is contained in:
@@ -37,7 +37,6 @@ resource "oci_core_instance_pool" "web" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
# topology.kubernetes.io/zone=${split(":", local.zone)[1]}
|
|
||||||
web_labels = "topology.kubernetes.io/region=${var.region},project.io/node-pool=web"
|
web_labels = "topology.kubernetes.io/region=${var.region},project.io/node-pool=web"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,7 +68,7 @@ resource "oci_core_instance_configuration" "web" {
|
|||||||
lbv4 = local.lbv4_local
|
lbv4 = local.lbv4_local
|
||||||
clusterDns = cidrhost(split(",", var.kubernetes["serviceSubnets"])[0], 10)
|
clusterDns = cidrhost(split(",", var.kubernetes["serviceSubnets"])[0], 10)
|
||||||
nodeSubnets = local.network_public[each.key].cidr_block
|
nodeSubnets = local.network_public[each.key].cidr_block
|
||||||
labels = local.web_labels
|
labels = "${local.web_labels},topology.kubernetes.io/zone=${split(":", each.key)[1]}"
|
||||||
})
|
})
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user