![](/img/trans.png)
[英]Terraform: How to create a Kubernetes cluster on Google Cloud (GKE) with namespaces?
[英]Google Cloud Kubernetes - How to create Zonal or Regional GKE cluster?
使用以下 terraform 代碼時,我如何知道我使用的是區域性還是區域性? 我想要 Zonal,因為 GCP 在使用 Zonal GKE 集群時不收取GKE Management fees
。
但我不確定以下是區域性的還是區域性的?
resource "google_container_cluster" "primary" {
name = "my-gke-cluster"
network = "default"
location = "europe-west1"
initial_node_count = 1
}
Google Kubernetes 引擎將區域定義為多區域。 對於區域,它由字母表示,例如a
、 b
、 c
。
因此,以下是該位置的示例。
europe-west1
、 us-west1
等。europe-west1-b
、 us-west1-a
等。在您的 terraform 模塊中,如果您想擁有區域性 GKE 集群,它看起來像這樣。
resource "google_container_cluster" "primary" {
name = "zonal-cluster"
network = "default"
location = "europe-west1-b"
initial_node_count = 1
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.