Skip to content

Commit

Permalink
Added TF DNS config options to prevent Autopilot destroy / create on …
Browse files Browse the repository at this point in the history
…existing cluster (#3330)
  • Loading branch information
abmarcum committed Aug 17, 2023
1 parent a9c051e commit 4c51220
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/terraform/modules/gke-autopilot/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ resource "google_container_cluster" "primary" {
}
}

dns_config {
cluster_dns = "CLOUD_DNS"
cluster_dns_domain = "cluster.local"
cluster_dns_scope = "CLUSTER_SCOPE"
}

timeouts {
create = "40m"
update = "60m"
Expand Down

0 comments on commit 4c51220

Please sign in to comment.