mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
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:
parent
51bf6f432a
commit
742c060dcc
|
@ -48,6 +48,11 @@ resource "google_container_cluster" "primary" {
|
||||||
|
|
||||||
tags = ["foo", "bar"]
|
tags = ["foo", "bar"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timeouts {
|
||||||
|
create = "30m"
|
||||||
|
update = "40m"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# The following outputs allow authentication and connectivity to the GKE Cluster.
|
# The following outputs allow authentication and connectivity to the GKE Cluster.
|
||||||
|
@ -484,8 +489,8 @@ exported:
|
||||||
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
|
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
|
||||||
|
|
||||||
- `create` - (Default `30 minutes`) Used for clusters
|
- `create` - (Default `30 minutes`) Used for clusters
|
||||||
- `update` - (Default `10 minutes`) Used for updates to clusters
|
- `update` - (Default `30 minutes`) Used for updates to clusters
|
||||||
- `delete` - (Default `10 minutes`) Used for destroying clusters.
|
- `delete` - (Default `30 minutes`) Used for destroying clusters.
|
||||||
|
|
||||||
## Import
|
## Import
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,11 @@ resource "google_container_node_pool" "np" {
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
cluster = "${google_container_cluster.primary.name}"
|
cluster = "${google_container_cluster.primary.name}"
|
||||||
node_count = 3
|
node_count = 3
|
||||||
|
|
||||||
|
timeouts {
|
||||||
|
create = "30m"
|
||||||
|
update = "20m"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_container_cluster" "primary" {
|
resource "google_container_cluster" "primary" {
|
||||||
|
@ -162,6 +167,16 @@ The `management` block supports:
|
||||||
|
|
||||||
* `auto_upgrade` - (Optional) Whether the nodes will be automatically upgraded.
|
* `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
|
## Import
|
||||||
|
|
||||||
Node pools can be imported using the `project`, `zone`, `cluster` and `name`. If
|
Node pools can be imported using the `project`, `zone`, `cluster` and `name`. If
|
||||||
|
|
Loading…
Reference in New Issue
Block a user