Skip to content

Commit

Permalink
try to fix quotas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Mar 5, 2024
1 parent d82ffce commit 8db4a5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions terraform/cluster/cluster.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_container_cluster" "primary" {
name = var.cluster_name
location = var.gcp_zone
location = var.gcp_region

remove_default_node_pool = true
initial_node_count = 1
Expand Down Expand Up @@ -29,7 +29,7 @@ resource "google_container_cluster" "primary" {

resource "google_container_node_pool" "primary_preemptible_nodes" {
name = var.pool_name
location = var.gcp_zone
location = var.gcp_region
cluster = google_container_cluster.primary.name

node_config {
Expand All @@ -42,10 +42,10 @@ resource "google_container_node_pool" "primary_preemptible_nodes" {
"https://www.googleapis.com/auth/cloud-platform"
]
disk_type = pd-standard
disk_size_gb = 20
disk_size_gb = 25
}
autoscaling {
min_node_count = 2
max_node_count = 10
max_node_count = 4
}
}
4 changes: 2 additions & 2 deletions terraform/cluster/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "gcp_zone" {
description = "The GCP zone to deploy the cluster."
variable "gcp_region" {
description = "The GCP region to deploy the cluster."
}

# variable "gcp_region" {
Expand Down
3 changes: 1 addition & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ module "service_account" {
module "cluster" {
source = "./cluster"
cluster_name = var.cluster_name
gcp_zone = var.gcp_zone
# gcp_region = var.gcp_region
gcp_region = var.gcp_region
sa_email = module.service_account.sa_email
pool_name = var.pool_name
}

0 comments on commit 8db4a5f

Please sign in to comment.