-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy/gcp: support zonal and multi-zonal cluster (#809)
* support zonal/multi-zonal clusters * fmt * comment * location is optional
- Loading branch information
Showing
11 changed files
with
155 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# This will create a zonal cluster in zone us-central1-b with one additional zone. | ||
# Work nodes will be created in primary zone us-central1-b and additional zone us-central1-c. | ||
# | ||
gke_name = "multi-zonal" | ||
vpc_name = "multi-zonal" | ||
location = "us-central1-b" | ||
pd_instance_type = "n1-standard-2" | ||
tikv_instance_type = "n1-highmem-4" | ||
tidb_instance_type = "n1-standard-8" | ||
node_locations = [ | ||
"us-central1-c" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# This will create a zonal cluster in zone us-central1-b without additional zones. | ||
# Work nodes will be created in a single zone only. | ||
# | ||
gke_name = "single-zonal" | ||
vpc_name = "single-zonal" | ||
location = "us-central1-b" | ||
pd_instance_type = "n1-standard-2" | ||
tikv_instance_type = "n1-highmem-4" | ||
tidb_instance_type = "n1-standard-8" | ||
pd_count = 3 | ||
tikv_count = 3 | ||
tidb_count = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pd_instance_type = "n1-standard-2" | ||
tikv_instance_type = "n1-highmem-4" | ||
tidb_instance_type = "n1-standard-8" | ||
|
||
# specify tidb version | ||
tidb_version = "3.0.2" | ||
|
||
# override tidb cluster values | ||
override_values = <<EOF | ||
pd: | ||
hostNetwork: true | ||
tikv: | ||
resources: | ||
requests: | ||
cpu: "1" | ||
memory: 1Gi | ||
storage: 10Gi | ||
hostNetwork: true | ||
tidb: | ||
resources: | ||
requests: | ||
cpu: "1" | ||
memory: 1Gi | ||
hostNetwork: true | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters