Add timeouts to container node pool docs, add timeouts to examples. (#2969)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2019-01-31 12:52:08 -08:00 committed by Riley Karson
parent 51bf6f432a
commit 742c060dcc
2 changed files with 22 additions and 2 deletions

View File

@ -48,6 +48,11 @@ resource "google_container_cluster" "primary" {
tags = ["foo", "bar"]
}
timeouts {
create = "30m"
update = "40m"
}
}
# The following outputs allow authentication and connectivity to the GKE Cluster.
@ -484,8 +489,8 @@ exported:
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
- `create` - (Default `30 minutes`) Used for clusters
- `update` - (Default `10 minutes`) Used for updates to clusters
- `delete` - (Default `10 minutes`) Used for destroying clusters.
- `update` - (Default `30 minutes`) Used for updates to clusters
- `delete` - (Default `30 minutes`) Used for destroying clusters.
## Import

View File

@ -21,6 +21,11 @@ resource "google_container_node_pool" "np" {
zone = "us-central1-a"
cluster = "${google_container_cluster.primary.name}"
node_count = 3
timeouts {
create = "30m"
update = "20m"
}
}
resource "google_container_cluster" "primary" {
@ -162,6 +167,16 @@ The `management` block supports:
* `auto_upgrade` - (Optional) Whether the nodes will be automatically upgraded.
<a id="timeouts"></a>
## Timeouts
`google_container_node_pool` provides the following
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
- `create` - (Default `30 minutes`) Used for adding node pools
- `update` - (Default `10 minutes`) Used for updates to node pools
- `delete` - (Default `10 minutes`) Used for removing node pools.
## Import
Node pools can be imported using the `project`, `zone`, `cluster` and `name`. If