From 6e912ff336faca663873d6107bf47175bd9e2844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20N=C3=A4gele?= Date: Wed, 4 Jan 2017 07:14:39 +0100 Subject: [PATCH] [GKE] Allow additional zones to be configured --- r/container_cluster.html.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/r/container_cluster.html.markdown b/r/container_cluster.html.markdown index a667323b..9c2306fe 100644 --- a/r/container_cluster.html.markdown +++ b/r/container_cluster.html.markdown @@ -20,6 +20,11 @@ resource "google_container_cluster" "primary" { zone = "us-central1-a" initial_node_count = 3 + additional_zones = [ + "us-central1-b", + "us-central1-c" + ] + master_auth { username = "mr.yoda" password = "adoy.rm" @@ -47,9 +52,13 @@ resource "google_container_cluster" "primary" { * `name` - (Required) The name of the cluster, unique within the project and 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 Container Engine