diff --git a/main.tf b/main.tf index 508fe2f..ca45c2f 100644 --- a/main.tf +++ b/main.tf @@ -153,7 +153,7 @@ locals { module "gke" { count = var.enable_private_gke ? 0 : 1 source = "terraform-google-modules/kubernetes-engine/google" - version = "33.1.0" + version = "35.0.1" name = var.cluster_name add_cluster_firewall_rules = var.add_cluster_firewall_rules @@ -194,6 +194,7 @@ module "gke" { cluster_dns_provider = var.cluster_dns_provider cluster_dns_scope = var.cluster_dns_scope cluster_dns_domain = var.cluster_dns_domain + additive_vpc_scope_dns_domain = var.additive_vpc_scope_dns_domain } module "gke_private" { diff --git a/variables.tf b/variables.tf index c1c113b..1123410 100644 --- a/variables.tf +++ b/variables.tf @@ -80,6 +80,12 @@ variable "cluster_dns_domain" { default = "" } +variable "additive_vpc_scope_dns_domain" { + type = string + description = "This will enable Cloud DNS additive VPC scope. Must provide a domain name that is unique within the VPC. For this to work cluster_dns = `CLOUD_DNS` and cluster_dns_scope = `CLUSTER_SCOPE` must both be set as well." + default = "" +} + variable "cluster_http_load_balancing" { default = true description = "Enable the HTTP load balancing addon for the cluster. Defaults to \"true\"" @@ -507,4 +513,4 @@ variable "enable_l4_ilb_subsetting" { type = bool description = "Enable L4 ILB Subsetting on the cluster, this cannot be disabled once it has been enabled." default = false -} \ No newline at end of file +}