cap boot drive size to 20gb (default is 100gb) to avoid resource exhaustion

This commit is contained in:
E M 2026-04-29 21:26:47 +10:00
parent 9e732b16b9
commit 5da74edda0
No known key found for this signature in database

View File

@ -26,8 +26,9 @@ resource "google_container_cluster" "this" {
}
node_config {
machine_type = var.node_pool_machine_type
labels = var.node_pool_labels
machine_type = var.node_pool_machine_type
disk_size_gb = 20
labels = var.node_pool_labels
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform",
@ -45,9 +46,10 @@ resource "google_container_cluster" "this" {
}
node_config {
machine_type = var.tests_pool_machine_type
spot = true
labels = var.tests_pool_labels
machine_type = var.tests_pool_machine_type
disk_size_gb = 20
spot = true
labels = var.tests_pool_labels
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform",