Skip to content

Commit 3307da4

Browse files
committed
edit autoscaler minimum
Signed-off-by: osamamagdy <[email protected]>
1 parent 6f68c47 commit 3307da4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gcp/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
# Set the resource group in the backend configuration below, then uncomment and apply!
44
# Note that you probably already create a resource group. Don't forget to set that correctly in this file.
55
backend "gcs" {
6-
bucket = "tfstate-wrongsecrets-4d4c5bc1"
6+
bucket = ""
77
prefix = "terraform/state"
88
}
99
}
@@ -61,15 +61,15 @@ resource "google_container_cluster" "gke" {
6161
enabled = true
6262
resource_limits {
6363
resource_type = "cpu"
64-
minimum = 1
65-
maximum = 10
64+
minimum = 2 # 1 node * 2 vCPU (e2-standard-2)
65+
maximum = 20 # 10 nodes * 2 vCPU (e2-standard-2)
6666

6767
}
6868

6969
resource_limits {
7070
resource_type = "memory"
71-
minimum = 1
72-
maximum = 64
71+
minimum = 8 # 1 node * 8 GB (e2-standard-2)
72+
maximum = 80 # 10 nodes * 8 GB (e2-standard-2)
7373

7474
}
7575

0 commit comments

Comments
 (0)