Skip to content

Commit cdcdd02

Browse files
committed
Add vars to be able to configure cloud DNS
1 parent 4ea2071 commit cdcdd02

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ module "gke" {
191191
database_encryption = local.database_encryption
192192
deletion_protection = var.deletion_protection
193193
enable_l4_ilb_subsetting = var.enable_l4_ilb_subsetting
194+
cluster_dns_provider = var.cluster_dns_provider
195+
cluster_dns_scope = var.cluster_dns_scope
196+
cluster_dns_domain = var.cluster_dns_domain
194197
}
195198

196199
module "gke_private" {

variables.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,24 @@ variable "cluster_autoscaling_config" {
6262
})
6363
}
6464

65+
variable "cluster_dns_provider" {
66+
type = string
67+
description = "Which in-cluster DNS provider should be used. PROVIDER_UNSPECIFIED (default) or PLATFORM_DEFAULT or CLOUD_DNS."
68+
default = "PROVIDER_UNSPECIFIED"
69+
}
70+
71+
variable "cluster_dns_scope" {
72+
type = string
73+
description = "The scope of access to cluster DNS records. DNS_SCOPE_UNSPECIFIED (default) or CLUSTER_SCOPE or VPC_SCOPE. "
74+
default = "DNS_SCOPE_UNSPECIFIED"
75+
}
76+
77+
variable "cluster_dns_domain" {
78+
type = string
79+
description = "The suffix used for all cluster service records."
80+
default = ""
81+
}
82+
6583
variable "cluster_http_load_balancing" {
6684
default = true
6785
description = "Enable the HTTP load balancing addon for the cluster. Defaults to \"true\""

0 commit comments

Comments
 (0)