Skip to content

Commit

Permalink
Increase GCP network deletion timeout from 4m to 6m
Browse files Browse the repository at this point in the history
* Removing a Google Cloud cluster often required 2 runs of
`terraform apply` because network resource deletes timeout
after 4m. Increase the network deletion timeout to 6m to
ensure apply only needs to be run once to remove a cluster
* Fixes a GCP errata item https://github.com/poseidon/typhoon/wiki/Errata
  • Loading branch information
dghubble committed Jul 6, 2019
1 parent 8d373b5 commit eb5999d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions google-cloud/container-linux/kubernetes/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ resource "google_compute_network" "network" {
name = var.cluster_name
description = "Network for the ${var.cluster_name} cluster"
auto_create_subnetworks = true

timeouts {
delete = "6m"
}
}

resource "google_compute_firewall" "allow-ssh" {
Expand Down

0 comments on commit eb5999d

Please sign in to comment.