Difference between revisions of "GKE location"
Jump to navigation
Jump to search
(Created page with "* https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#location") |
|||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
* https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#location | * https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#location | ||
+ | |||
+ | (Optional) The location (region or zone) in which the cluster master will be created, as well as the default node location. If you specify a zone (such as [[us-central1]]-a), the cluster will be a zonal cluster with a single cluster master. If you specify a region (such as us-west1), the cluster will be a regional cluster with multiple masters spread across zones in the region, and with default node locations in those zones as well. | ||
+ | |||
+ | |||
+ | Configuring location using a zone instead of a region (<code>[[us-central1]]</code>): | ||
+ | location = "[[us-central1-a]]" | ||
+ | |||
+ | |||
+ | [[terraform show]] | grep "location" | ||
+ | [[gcloud container clusters list]] | ||
+ | |||
+ | == Terraform related resources == | ||
+ | * <code>[[google_container_cluster]]</code> | ||
+ | * <code>[[google_container_node_pool]]</code> | ||
+ | |||
+ | == Related == | ||
+ | * [[Google Cloud regions]] | ||
+ | * [[Google Cloud zones]] | ||
+ | |||
+ | == See also == | ||
+ | * {{GKE}} | ||
+ | |||
+ | [[Category:GKE]] |
Latest revision as of 17:59, 7 December 2023
(Optional) The location (region or zone) in which the cluster master will be created, as well as the default node location. If you specify a zone (such as us-central1-a), the cluster will be a zonal cluster with a single cluster master. If you specify a region (such as us-west1), the cluster will be a regional cluster with multiple masters spread across zones in the region, and with default node locations in those zones as well.
Configuring location using a zone instead of a region (us-central1
):
location = "us-central1-a"
terraform show | grep "location" gcloud container clusters list
[edit]
Related[edit]
See also[edit]
Advertising: