mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 17:16:44 +00:00
Merge pull request #11018 from unguiculus/feature/additional_zones
provider/google: [GKE] Allow additional zones to be configured
This commit is contained in:
commit
2f1f73969f
@ -20,6 +20,11 @@ resource "google_container_cluster" "primary" {
|
|||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
initial_node_count = 3
|
initial_node_count = 3
|
||||||
|
|
||||||
|
additional_zones = [
|
||||||
|
"us-central1-b",
|
||||||
|
"us-central1-c"
|
||||||
|
]
|
||||||
|
|
||||||
master_auth {
|
master_auth {
|
||||||
username = "mr.yoda"
|
username = "mr.yoda"
|
||||||
password = "adoy.rm"
|
password = "adoy.rm"
|
||||||
@ -47,9 +52,13 @@ resource "google_container_cluster" "primary" {
|
|||||||
* `name` - (Required) The name of the cluster, unique within the project and
|
* `name` - (Required) The name of the cluster, unique within the project and
|
||||||
zone.
|
zone.
|
||||||
|
|
||||||
* `zone` - (Required) The zone that all resources should be created in.
|
* `zone` - (Required) The zone that the master and the number of nodes specified
|
||||||
|
in `initial_node_count` should be created in.
|
||||||
|
|
||||||
- - -
|
- - -
|
||||||
|
* `additional_zones` - (Optional) If additional zones are configured, the number
|
||||||
|
of nodes specified in `initial_node_count` is created in all specified zones.
|
||||||
|
|
||||||
* `addons_config` - (Optional) The configuration for addons supported by Google
|
* `addons_config` - (Optional) The configuration for addons supported by Google
|
||||||
Container Engine
|
Container Engine
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user